[Mono-bugs] [Bug 55644][Maj] Changed - Finalizer not being called.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Mar 2004 08:39:07 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.


--- shadow/55644	2004-03-16 21:36:18.000000000 -0500
+++ shadow/55644.tmp.22444	2004-03-18 08:39:07.000000000 -0500
@@ -92,6 +92,18 @@
 finalizador-3.cs for convenience. It follows some advice by miguel at
 ximian dot com.
 ------- Additional Comments From bmaurer@users.sf.net  2004-03-16 21:36 -------
 sigh, so it is the runtime :-(
+------- Additional Comments From vargaz@freemail.hu  2004-03-18 08:39 -------
+This is caused by a bug in the Boehm collector:
+" I have a problem with GC_gcj_malloc. It calls GC_generic_malloc_inner
+instead of GC_generic_malloc, which means that GC_INVOKE_FINALIZERS
+does not get called. This means that if a program uses gcj_malloc only,
+then finalizers will never get called."
+I'm afraid the only workaround is to disable typed allocation, which
+can be done by setting CREATION_SPEEDUP to 1 in metadata/object.c.