summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:49:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:49:53 +0000
commit0b87f8d4cfa627173037c00712e28eb0d5df8307 (patch)
tree6cc013ae54152ac60b1ac8497ffe36640fd54300
parent147775ac2b21b6591d24cc2af23b8fccb3daf3fa (diff)
* gc.c (gc_clear_slot_bits): used only if no RGenGC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index e79e19ba48..cbad1d72a2 100644
--- a/gc.c
+++ b/gc.c
@@ -2116,13 +2116,13 @@ lazy_sweep_enable(void)
return Qnil;
}
+#if !USE_RGENGC
static void
gc_clear_slot_bits(struct heaps_slot *slot)
{
memset(slot->header->mark_bits, 0, HEAP_BITMAP_LIMIT * sizeof(uintptr_t));
}
-
-#if USE_RGENGC
+#else
static void
gc_setup_mark_bits(struct heaps_slot *slot)
{