@@ -4178,7 +4178,7 @@ thread_startup (MonoProfiler *prof, uintptr_t tid)
4178
4178
tls = g_new0 (DebuggerTlsData , 1 );
4179
4179
#endif
4180
4180
MONO_GC_REGISTER_ROOT_SINGLE (tls -> thread , MONO_ROOT_SOURCE_DEBUGGER , NULL , "Debugger Thread Reference" );
4181
- mono_gc_wbarrier_set_field ( tls , (void * * )& tls -> thread , thread );
4181
+ mono_gc_wbarrier_generic_store ( (void * * )& tls -> thread , thread );
4182
4182
#ifdef RUNTIME_IL2CPP
4183
4183
tls -> il2cpp_context = il2cpp_debugger_get_thread_context ();
4184
4184
#endif
@@ -4218,7 +4218,7 @@ thread_end (MonoProfiler *prof, uintptr_t tid)
4218
4218
#ifndef RUNTIME_IL2CPP
4219
4219
MONO_GC_UNREGISTER_ROOT (tls -> thread );
4220
4220
#endif
4221
- mono_gc_wbarrier_set_field ( tls , (void * * )& tls -> thread , NULL );
4221
+ mono_gc_wbarrier_generic_store ( (void * * )& tls -> thread , NULL );
4222
4222
}
4223
4223
}
4224
4224
mono_loader_unlock ();
@@ -7730,7 +7730,7 @@ decode_value_internal (MonoType *t, int type, MonoDomain *domain, guint8 *addr,
7730
7730
g_free (vtype_buf );
7731
7731
return err ;
7732
7732
}
7733
- mono_gc_wbarrier_set_field ( NULL , (void * * )addr , mono_value_box_checked (d , klass , vtype_buf , & error ));
7733
+ mono_gc_wbarrier_generic_store ( (void * * )addr , mono_value_box_checked (d , klass , vtype_buf , & error ));
7734
7734
mono_error_cleanup (& error );
7735
7735
g_free (vtype_buf );
7736
7736
} else {
0 commit comments