Skip to content

Commit 2bcb382

Browse files
committed
Add another write barriers needed to comply with strict wbarrier mode
1 parent a4994b5 commit 2bcb382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mono/metadata/threads.c

Lines changed: 1 addition & 0 deletions
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)