2002-12-03 Dietmar Maurer <dietmar@ximian.com>
authorDietmar Maurer <dietmar@mono-cvs.ximian.com>
Tue, 3 Dec 2002 12:36:49 +0000 (12:36 -0000)
committerDietmar Maurer <dietmar@mono-cvs.ximian.com>
Tue, 3 Dec 2002 12:36:49 +0000 (12:36 -0000)
* gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3)

svn path=/trunk/mono/; revision=9365

mono/metadata/ChangeLog
mono/metadata/gc.c

index 221182bb15537617f8d96f3ce9ce7b766f7481c1..97bcd8955cbc53aff3f7973283eb66299ed0605f 100644 (file)
@@ -1,3 +1,6 @@
+2002-12-03  Dietmar Maurer  <dietmar@ximian.com>
+
+       * gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3) 
 
 Tue Dec 3 12:40:06 CET 2002 Paolo Molaro <lupus@ximian.com>
 
index 13ea906f31a395bd1d941f7035f6825bc6679cac..f1664189f8a622e72a9d75d0b8455381aa8bdd14 100644 (file)
@@ -48,11 +48,16 @@ run_finalize (void *obj, void *data)
                        }
                }
        }
+
        /* make sure the finalizer is not called again if the object is resurrected */
        object_register_finalizer (obj, NULL);
        /* speedup later... and use a timeout */
        /*g_print ("Finalize run on %p %s.%s\n", o, mono_object_class (o)->name_space, mono_object_class (o)->name);*/
        mono_domain_set (mono_object_domain (o));
+
+       /* fixme: running the finalizer break some tests, at least on rh7.3 */
+       return;
+
        mono_runtime_invoke (o->vtable->klass->vtable [finalize_slot], o, NULL, &exc);
 
        if (exc) {