Fix profiler handle GC tests (#83968)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 30 Mar 2023 13:29:18 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2023 13:29:18 +0000 (15:29 +0200)
commit21c4a26a0c0bd89930757c1c5ffbc391d5bacae0
treea92677a57dfeeae4ddee09fc7e81ad20aa3b4adf
parentcda093819ffff5dad3df38074946553fc146df6e
Fix profiler handle GC tests (#83968)

The JIT may extend the lifetime of these object references which can
keep them alive unexpectedly.

Fix #83962
src/tests/profiler/handles/handles.cs