Author: zoltan
Date: 2007-12-25 17:43:08 -0500 (Tue, 25 Dec 2007)
New Revision: 91881

Modified:
   trunk/mono/mono/os/ChangeLog
   trunk/mono/mono/os/gc_wrapper.h
Log:
2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>

        * gc_wrapper.h: Get rid of the MONO_GC_PRE_INIT () macro and unify 
definition
        of MONO_GC_REGISTER_ROOT.


Modified: trunk/mono/mono/os/ChangeLog
===================================================================
--- trunk/mono/mono/os/ChangeLog        2007-12-25 16:12:43 UTC (rev 91880)
+++ trunk/mono/mono/os/ChangeLog        2007-12-25 22:43:08 UTC (rev 91881)
@@ -1,3 +1,8 @@
+2007-12-26  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * gc_wrapper.h: Get rid of the MONO_GC_PRE_INIT () macro and unify 
definition
+       of MONO_GC_REGISTER_ROOT.
+
 2006-06-27  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * gc_wrapper.h: Disable GC_REDIRECT_TO_LOCAL on solaris/x86 as well.

Modified: trunk/mono/mono/os/gc_wrapper.h
===================================================================
--- trunk/mono/mono/os/gc_wrapper.h     2007-12-25 16:12:43 UTC (rev 91880)
+++ trunk/mono/mono/os/gc_wrapper.h     2007-12-25 22:43:08 UTC (rev 91881)
@@ -41,14 +41,6 @@
 #      else
 #              error have boehm GC without headers, you probably need to 
install them by hand
 #      endif
-       /* for some strange resion, they want one extra byte on the end */
-#      define MONO_GC_REGISTER_ROOT(x) \
-               GC_add_roots ((char*)&(x), (char*)&(x) + sizeof (x) + 1)
-       /* this needs to be called before ANY gc allocations. We can't use
-        * mono_gc_init here because we need to make allocations before that
-        * function is called 
-        */
-#      define MONO_GC_PRE_INIT() GC_init ()
 
 #if defined(PLATFORM_WIN32)
 #define CreateThread GC_CreateThread
@@ -73,16 +65,12 @@
 
 #endif
 
+#else /* not Boehm and not sgen GC */
+#endif
+
 extern int
 mono_gc_register_root (char *start, size_t size, void *descr);
-extern void mono_gc_base_init (void);
 
-#      define MONO_GC_REGISTER_ROOT(x) mono_gc_register_root (&(x), sizeof(x), 
NULL)
-#      define MONO_GC_PRE_INIT() mono_gc_base_init ()
+#define MONO_GC_REGISTER_ROOT(x) mono_gc_register_root ((char*)&(x), 
sizeof(x), NULL)
 
-#else /* not Boehm and not sgen GC */
-#      define MONO_GC_REGISTER_ROOT(x) /* nop */
-#      define MONO_GC_PRE_INIT()
 #endif
-
-#endif

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

Reply via email to