Fix test StackCommitCommon
authornoahfalk <noahfalk@microsoft.com>
Fri, 15 Sep 2017 02:33:29 +0000 (19:33 -0700)
committernoahfalk <noahfalk@microsoft.com>
Fri, 15 Sep 2017 20:28:37 +0000 (13:28 -0700)
commit3b418cdb524de69b0268597d0a97912133f1aa10
treed0e9f861cb6fe310b84728082d19f8e8b3128d84
parent2eb5343514d2795b2c81af7cb531cd11bf73a292
Fix test StackCommitCommon

This test will hang if run with non-optimized jitted code because it takes a dependency on exactly when locally allocated objects go out of scope. Although I doubt CLI spec guarantees the new code will always work either, it does work with the runtime/JIT as currently implemented.

Commit migrated from https://github.com/dotnet/coreclr/commit/0b5e12c59d37778d98156ae19298b2152b886c6d
src/coreclr/tests/src/baseservices/threading/commitstackonlyasneeded/StackCommitCommon.cs