Fix GC KeepAlive test
authorBruce Forstall <brucefo@microsoft.com>
Tue, 12 Jun 2018 21:12:34 +0000 (14:12 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Tue, 12 Jun 2018 21:12:34 +0000 (14:12 -0700)
commit5a7ceea52f7f73855fac1e8eac48b8db4d98fa96
tree32880d93943836a72052d9c126d497ab565ba731
parentb9ba1b663c3ab3104a67f4cc5310349ee3f5ef60
Fix GC KeepAlive test

We need to determine that an object finalizer has not been run
*before* the KeepAlive call. After the call, it is perfectly
valid for the finalizer to be called, which can happen under
GCStress.

Commit migrated from https://github.com/dotnet/coreclr/commit/75623f73d1fd635ddace9d36ee28eeabe6030531
src/coreclr/tests/src/GC/API/GC/KeepAlive.cs