Add sleep in hijacking test (#41340)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Tue, 25 Aug 2020 22:34:19 +0000 (00:34 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Aug 2020 22:34:19 +0000 (15:34 -0700)
Calling GC.Collect in a tight loop is unnecessary for the test and
causing timeouts in CI.

Fixes #40916

src/tests/JIT/Methodical/tailcall_v4/hijacking.il

index 8c64283..4be82b1 100644 (file)
     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