Skip to content

Commit def3444

Browse files
authored
Merge pull request #1012 from Unity-Technologies/incremental-boehm-strict-mode
Incremental boehm strict mode
2 parents 2682b1e + 248f7c2 commit def3444

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mono/metadata/gc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ mono_gc_finalize_notify (void)
712712
g_message ( "%s: prodding finalizer", __func__);
713713
#endif
714714

715-
if (mono_gc_is_null ())
715+
if (mono_gc_is_null () || mono_gc_is_disabled())
716716
return;
717717

718718
#ifdef HOST_WASM

mono/metadata/threads.c

+1
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ ves_icall_System_Threading_Thread_ConstructInternalThread (MonoThread *this_obj)
14021402
internal->state = ThreadState_Unstarted;
14031403

14041404
mono_atomic_cas_ptr ((volatile gpointer *)&this_obj->internal_thread, internal, NULL);
1405+
mono_gc_wbarrier_generic_nostore (&this_obj->internal_thread);
14051406
}
14061407

14071408
MonoThread *

0 commit comments

Comments
 (0)