Author: zoltan
Date: 2007-12-25 18:06:04 -0500 (Tue, 25 Dec 2007)
New Revision: 91885

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/boehm-gc.c
   trunk/mono/mono/metadata/null-gc.c
   trunk/mono/mono/metadata/object.c
Log:
2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>

        * object.c (mono_class_compute_gc_descriptor): Move the 
GC_init_gcj_malloc () 
        call to boehm-gc.c.

        * boehm-gc.c (mono_gc_register_root): Fix a warning.

        * null-gc.c (mono_gc_register_root): Fix a warning.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2007-12-25 22:56:55 UTC (rev 91884)
+++ trunk/mono/mono/metadata/ChangeLog  2007-12-25 23:06:04 UTC (rev 91885)
@@ -1,5 +1,12 @@
 2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>
 
+       * object.c (mono_class_compute_gc_descriptor): Move the 
GC_init_gcj_malloc () 
+       call to boehm-gc.c.
+
+       * boehm-gc.c (mono_gc_register_root): Fix a warning.
+
+       * null-gc.c (mono_gc_register_root): Fix a warning.
+
        * reflection.c (ALLOC_REFENTRY): Use mono_gc_alloc_fixed for boehm as 
well.
 
        * boehm-gc.c (mono_gc_register_root): Moved definition here from 
gc_wrapper.h.

Modified: trunk/mono/mono/metadata/boehm-gc.c
===================================================================
--- trunk/mono/mono/metadata/boehm-gc.c 2007-12-25 22:56:55 UTC (rev 91884)
+++ trunk/mono/mono/metadata/boehm-gc.c 2007-12-25 23:06:04 UTC (rev 91885)
@@ -38,6 +38,10 @@
        GC_set_warn_proc (mono_gc_warning);
        GC_finalize_on_demand = 1;
        GC_finalizer_notifier = mono_gc_finalize_notify;
+
+#ifdef HAVE_GC_GCJ_MALLOC
+       GC_init_gcj_malloc (5, NULL);
+#endif
 }
 
 void
@@ -170,6 +174,8 @@
 {
        /* for some strange reason, they want one extra byte on the end */
        GC_add_roots (start, start + size + 1);
+
+       return TRUE;
 }
 
 void

Modified: trunk/mono/mono/metadata/null-gc.c
===================================================================
--- trunk/mono/mono/metadata/null-gc.c  2007-12-25 22:56:55 UTC (rev 91884)
+++ trunk/mono/mono/metadata/null-gc.c  2007-12-25 23:06:04 UTC (rev 91885)
@@ -92,6 +92,7 @@
 int
 mono_gc_register_root (char *start, size_t size, void *descr)
 {
+       return TRUE;
 }
 
 void

Modified: trunk/mono/mono/metadata/object.c
===================================================================
--- trunk/mono/mono/metadata/object.c   2007-12-25 22:56:55 UTC (rev 91884)
+++ trunk/mono/mono/metadata/object.c   2007-12-25 23:06:04 UTC (rev 91885)
@@ -859,9 +859,6 @@
                mono_register_jit_icall (mono_string_alloc, 
"mono_string_alloc", mono_create_icall_signature ("object int"), FALSE);
 
 #ifdef HAVE_GC_GCJ_MALLOC
-
-               GC_init_gcj_malloc (5, NULL);
-
                /* 
                 * This is not needed unless the relevant code in 
mono_get_allocation_ftn () is 
                 * turned on.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to