[gc] Remove mono_gc_disable/enable().
authorMark Probst <mark.probst@gmail.com>
Thu, 14 Feb 2013 18:46:24 +0000 (10:46 -0800)
committerMark Probst <mark.probst@gmail.com>
Thu, 14 Feb 2013 21:49:11 +0000 (13:49 -0800)
We don't use it anymore, and SGen doesn't honor it anyway.

mono/metadata/boehm-gc.c
mono/metadata/gc-internal.h
mono/metadata/null-gc.c
mono/metadata/sgen-gc.c

index b9166846b744c095a2d3cf27f28f401efec51e3a..7611ebd1403dba182b4dce1a88c9a13e2eafdec8 100644 (file)
@@ -299,26 +299,6 @@ mono_gc_get_heap_size (void)
        return GC_get_heap_size ();
 }
 
-void
-mono_gc_disable (void)
-{
-#ifdef HAVE_GC_ENABLE
-       GC_disable ();
-#else
-       g_assert_not_reached ();
-#endif
-}
-
-void
-mono_gc_enable (void)
-{
-#ifdef HAVE_GC_ENABLE
-       GC_enable ();
-#else
-       g_assert_not_reached ();
-#endif
-}
-
 gboolean
 mono_gc_is_gc_thread (void)
 {
index 3bca46e0d1d158da8c41758a397f79238a023f9b..3d94bc1f8d1374d571000d9d8ee16ab3a9d1c8c9 100644 (file)
@@ -90,8 +90,6 @@ MonoObject  *ves_icall_System_GC_get_ephemeron_tombstone (void) MONO_INTERNAL;
 extern void mono_gc_init (void) MONO_INTERNAL;
 extern void mono_gc_base_init (void) MONO_INTERNAL;
 extern void mono_gc_cleanup (void) MONO_INTERNAL;
-extern void mono_gc_enable (void) MONO_INTERNAL;
-extern void mono_gc_disable (void) MONO_INTERNAL;
 
 /*
  * Return whenever the current thread is registered with the GC (i.e. started
index 5f6a3791d32a0bfa21d0bb04e64768e1b63f9c24..4297749f9c19a61a7fbfe3b587c239212d101fd3 100644 (file)
@@ -65,16 +65,6 @@ mono_gc_get_heap_size (void)
        return 2*1024*1024;
 }
 
-void
-mono_gc_disable (void)
-{
-}
-
-void
-mono_gc_enable (void)
-{
-}
-
 gboolean
 mono_gc_is_gc_thread (void)
 {
index df334cb20ae97bd1d6c5bf02666a5b2daf31b806..d4c86c01eaeb9de7ef43588671cf6f3608abcf74 100644 (file)
@@ -391,7 +391,6 @@ sgen_safe_name (void* obj)
  * ######################################################################
  */
 LOCK_DECLARE (gc_mutex);
-static int gc_disabled = 0;
 
 static gboolean use_cardtable;
 
@@ -4685,22 +4684,6 @@ mono_gc_get_used_size (void)
        return tot;
 }
 
-void
-mono_gc_disable (void)
-{
-       LOCK_GC;
-       gc_disabled++;
-       UNLOCK_GC;
-}
-
-void
-mono_gc_enable (void)
-{
-       LOCK_GC;
-       gc_disabled--;
-       UNLOCK_GC;
-}
-
 int
 mono_gc_get_los_limit (void)
 {