Skip to content

Commit

Permalink
Add sleep in hijacking test (dotnet#41340)
Browse files Browse the repository at this point in the history
Calling GC.Collect in a tight loop is unnecessary for the test and
causing timeouts in CI.

Fixes dotnet#40916
  • Loading branch information
jakobbotsch authored Aug 25, 2020
1 parent d5cf669 commit 8d987c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/JIT/Methodical/tailcall_v4/hijacking.il
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@
IL_000f: conv.i8
IL_0010: add
IL_0011: stfld int64 Repro::gc
ldc.i4.1
call void [System.Threading.Thread]System.Threading.Thread::Sleep(int32)
IL_0016: ldarg.0
IL_0017: volatile.
IL_0019: ldfld bool modreq([System.Runtime]System.Runtime.CompilerServices.IsVolatile) Repro::stop
Expand Down

0 comments on commit 8d987c6

Please sign in to comment.