+Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+ * gc.c: fix thinko, enable actual finalization since the jit is now
+ fixed.
+
Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
* gc.c, object.c: take into account that an object may be offset wrt the address
}
}
/* speedup later... */
- /*
- * mono crashes (see bug#23778)
- g_print ("finalizer is run on %s at %p\n", mono_object_class(o)->name, o);
- mono_runtime_invoke (o->vtable->klass->vtable [finalize_slot], obj, NULL);
- */
+ mono_runtime_invoke (o->vtable->klass->vtable [finalize_slot], o, NULL);
}
/*
{
#if HAVE_BOEHM_GC
guint offset = 0;
- if (mono_object_class (obj)->ghcimpl)
+ if (!mono_object_class (obj)->ghcimpl)
offset += 4;
- /*g_print ("registering %s at %p (base: %p)\n", mono_object_class (obj)->name, obj, GC_base (obj));*/
+ g_assert (GC_base (obj) == (char*)obj - offset);
GC_register_finalizer ((char*)obj - offset, run_finalize, GUINT_TO_POINTER (offset), NULL, NULL);
#endif
}