We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2682b1e + 248f7c2 commit def3444Copy full SHA for def3444
mono/metadata/gc.c
@@ -712,7 +712,7 @@ mono_gc_finalize_notify (void)
712
g_message ( "%s: prodding finalizer", __func__);
713
#endif
714
715
- if (mono_gc_is_null ())
+ if (mono_gc_is_null () || mono_gc_is_disabled())
716
return;
717
718
#ifdef HOST_WASM
mono/metadata/threads.c
@@ -1402,6 +1402,7 @@ ves_icall_System_Threading_Thread_ConstructInternalThread (MonoThread *this_obj)
1402
internal->state = ThreadState_Unstarted;
1403
1404
mono_atomic_cas_ptr ((volatile gpointer *)&this_obj->internal_thread, internal, NULL);
1405
+ mono_gc_wbarrier_generic_nostore (&this_obj->internal_thread);
1406
}
1407
1408
MonoThread *
0 commit comments