[sgen] Fix non-Mono SGen clients.
[mono.git] / mono / sgen / sgen-debug.c
index 953570678454ec08d02e34d2a33cadf3cb676440..f5cd51d11cae7fb3dfc59fea7e4d3259ce577043 100644 (file)
@@ -859,7 +859,7 @@ mono_gc_scan_for_specific_ref (GCObject *key, gboolean precise)
        } SGEN_HASH_TABLE_FOREACH_END;
 
        if (sgen_is_world_stopped ())
-               find_pinning_ref_from_thread ((char*)key, sizeof (MonoObject));
+               find_pinning_ref_from_thread ((char*)key, sizeof (GCObject));
 }
 
 #ifndef SGEN_WITHOUT_MONO