From: Mark Probst Date: Wed, 14 Jan 2015 01:11:12 +0000 (-0800) Subject: [sgen] Get rid of `sgen_client_vtable_has_references()`. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3df7a2f569ae58adcdda77821b671da839fd4655;p=mono.git [sgen] Get rid of `sgen_client_vtable_has_references()`. --- diff --git a/mono/metadata/sgen-client-mono.h b/mono/metadata/sgen-client-mono.h index 80839d384e5..458aebd4913 100644 --- a/mono/metadata/sgen-client-mono.h +++ b/mono/metadata/sgen-client-mono.h @@ -191,13 +191,6 @@ sgen_client_object_is_array_fill (GCObject *o) return ((MonoObject*)o)->synchronisation == GINT_TO_POINTER (-1); } -/* FIXME: Why do we even need this? Can't we get it from the descriptor? */ -static gboolean G_GNUC_UNUSED -sgen_client_vtable_has_references (GCVTable *vt) -{ - return ((MonoVTable*)vt)->klass->has_references; -} - static MONO_ALWAYS_INLINE void G_GNUC_UNUSED sgen_client_pre_copy_checks (char *destination, GCVTable *gc_vtable, void *obj, mword objsize) { diff --git a/mono/metadata/sgen-marksweep.c b/mono/metadata/sgen-marksweep.c index 6034678a9b5..f84a898af84 100644 --- a/mono/metadata/sgen-marksweep.c +++ b/mono/metadata/sgen-marksweep.c @@ -1689,7 +1689,7 @@ count_nonpinned_callback (char *obj, size_t size, void *data) { GCVTable *vtable = (GCVTable*)LOAD_VTABLE (obj); - if (sgen_client_vtable_has_references (vtable)) + if (SGEN_VTABLE_HAS_REFERENCES (vtable)) ++count_nonpinned_ref; else ++count_nonpinned_nonref; @@ -1700,7 +1700,7 @@ count_pinned_callback (char *obj, size_t size, void *data) { GCVTable *vtable = (GCVTable*)LOAD_VTABLE (obj); - if (sgen_client_vtable_has_references (vtable)) + if (SGEN_VTABLE_HAS_REFERENCES (vtable)) ++count_pinned_ref; else ++count_pinned_nonref;