diff options
author | Peter Kukol <pkukol@users.noreply.github.com> | 2017-02-23 09:13:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 09:13:34 -0700 |
commit | d7509df9635ca92c1a3cf75dc2516ae51b0e03d6 (patch) | |
tree | 12dc5cb574fd2f419ba2681ffda6b74c6f121385 /tests/src/GC/Scenarios/WeakReference | |
parent | 08581d8e9515ef1a348e7509785ea29195a9de37 (diff) | |
download | coreclr-d7509df9635ca92c1a3cf75dc2516ae51b0e03d6.tar.gz coreclr-d7509df9635ca92c1a3cf75dc2516ae51b0e03d6.tar.bz2 coreclr-d7509df9635ca92c1a3cf75dc2516ae51b0e03d6.zip |
Simplified MinOpts GC ref tracking. (#9231)
Simplified MinOpts GC ref tracking - when a method is compiled with MinOpts for targets with the 64-bit GC info encoder we mark all GC slots as untracked and we omit encoding call sites with no live tracked GC refs explicitly in the GC tables; this can be controlled using the new COMPlus_JitMinOptsTrackGCrefs environment flag.
Diffstat (limited to 'tests/src/GC/Scenarios/WeakReference')
-rw-r--r-- | tests/src/GC/Scenarios/WeakReference/weakreffinal.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/GC/Scenarios/WeakReference/weakreffinal.cs b/tests/src/GC/Scenarios/WeakReference/weakreffinal.cs index a356cec433..754e88d7a1 100644 --- a/tests/src/GC/Scenarios/WeakReference/weakreffinal.cs +++ b/tests/src/GC/Scenarios/WeakReference/weakreffinal.cs @@ -22,6 +22,11 @@ namespace DefaultNamespace { public bool RunTest(int iObj,int iSwitch) { DeleteObj(iObj,iSwitch); + + GC.Collect(); + GC.WaitForPendingFinalizers(); + GC.Collect(); + bool result = CheckResult(iObj,iSwitch); return result; } @@ -48,11 +53,6 @@ namespace DefaultNamespace { { rgNode[i] = null; } - - GC.Collect(); - GC.WaitForPendingFinalizers(); - GC.Collect(); - } public bool CheckResult(int iObj,int iSwitch) |