The following program throws `ArgumentOutOfRangeException` in Release and finishes normally in Debug: https://gist.github.com/EgorBo/bdd1c3c2c65a80681e96f840df40cd2a cc @AndyAyersMS @dotnet/jit-contrib