File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1033,10 +1033,6 @@ static void *signal_listener(void *arg)
1033
1033
}
1034
1034
#endif
1035
1035
if (doexit ) {
1036
- // Let's forbid threads from running GC while we're trying to exit,
1037
- // also let's make sure we're not in the middle of GC.
1038
- jl_atomic_fetch_add (& jl_gc_disable_counter , 1 );
1039
- jl_safepoint_wait_gc (NULL );
1040
1036
// The exit can get stuck if it happens at an unfortunate spot in thread 0
1041
1037
// (unavoidable due to its async nature).
1042
1038
// Try much harder to exit next time, if we get multiple exit requests.
@@ -1093,6 +1089,10 @@ static void *signal_listener(void *arg)
1093
1089
//#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L && !HAVE_KEVENT
1094
1090
// si_code = info.si_code;
1095
1091
//#endif
1092
+ // Let's forbid threads from running GC while we're trying to exit,
1093
+ // also let's make sure we're not in the middle of GC.
1094
+ jl_atomic_fetch_add (& jl_gc_disable_counter , 1 );
1095
+ jl_safepoint_wait_gc (NULL );
1096
1096
jl_exit_thread0 (sig , signal_bt_data , signal_bt_size );
1097
1097
}
1098
1098
else if (critical ) {
You can’t perform that action at this time.
0 commit comments