We don't use it anymore, and SGen doesn't honor it anyway.
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)
{
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
return 2*1024*1024;
}
-void
-mono_gc_disable (void)
-{
-}
-
-void
-mono_gc_enable (void)
-{
-}
-
gboolean
mono_gc_is_gc_thread (void)
{
* ######################################################################
*/
LOCK_DECLARE (gc_mutex);
-static int gc_disabled = 0;
static gboolean use_cardtable;
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)
{