Skip to content

Commit f0fcf2e

Browse files
jechterjoncham
authored andcommitted
Use mono_gc_wbarrier_generic_store instead of mono_gc_wbarrier_set_field
1 parent fce7192 commit f0fcf2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mono/mini/debugger-agent.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4178,7 +4178,7 @@ thread_startup (MonoProfiler *prof, uintptr_t tid)
41784178
tls = g_new0 (DebuggerTlsData, 1);
41794179
#endif
41804180
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);
41824182
#ifdef RUNTIME_IL2CPP
41834183
tls->il2cpp_context = il2cpp_debugger_get_thread_context ();
41844184
#endif
@@ -4218,7 +4218,7 @@ thread_end (MonoProfiler *prof, uintptr_t tid)
42184218
#ifndef RUNTIME_IL2CPP
42194219
MONO_GC_UNREGISTER_ROOT (tls->thread);
42204220
#endif
4221-
mono_gc_wbarrier_set_field(tls, (void**)&tls->thread, NULL);
4221+
mono_gc_wbarrier_generic_store((void**)&tls->thread, NULL);
42224222
}
42234223
}
42244224
mono_loader_unlock ();
@@ -7730,7 +7730,7 @@ decode_value_internal (MonoType *t, int type, MonoDomain *domain, guint8 *addr,
77307730
g_free (vtype_buf);
77317731
return err;
77327732
}
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));
77347734
mono_error_cleanup (&error);
77357735
g_free (vtype_buf);
77367736
} else {

0 commit comments

Comments
 (0)