From 6815aba40ccb148a185fd29fe9551dd2aab5ef18 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Tue, 25 Aug 2020 20:09:36 +0200 Subject: [PATCH] Add sleep in hijacking test 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/JIT/Methodical/tailcall_v4/hijacking.il b/src/tests/JIT/Methodical/tailcall_v4/hijacking.il index 8c642832f3ef60..4be82b1720b5b6 100644 --- a/src/tests/JIT/Methodical/tailcall_v4/hijacking.il +++ b/src/tests/JIT/Methodical/tailcall_v4/hijacking.il @@ -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