You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4a00c50
Browse filesBrowse the repository at this point in the historyBrowse files
[2018-02] Harden JIT job control against cctors deadlocking. (#8235)
* [mini] Don't wait for other threads to finish JITing if the current thread is running a cctor.
This eliminates a possible source of deadlocks found during AOT runs of Roslyn.
* [mini] Introduce a 1s timeout to JIT job control to ensure we don't simply deadlock in case of execution dependency bugs.
* [mini] fix spelling5DD
Copy file name to clipboardExpand all lines: mono/mini/mini-runtime.c
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1832,8 +1832,15 @@ typedef struct {
1832
1832
MonoCoopMutexlock;
1833
1833
} JitCompilationData;
1834
1834
1835
+
/*
1836
+
Timeout, in millisecounds, that we wait other threads to finish JITing.
1837
+
This value can't be too small or we won't see enough methods being reused and it can't be too big to cause massive stalls due to unforseable circunstances.
0 commit comments