* 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
This commit is contained in:
parent
147775ac2b
commit
0b87f8d4cf
4
gc.c
4
gc.c
@ -2116,13 +2116,13 @@ lazy_sweep_enable(void)
|
|||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !USE_RGENGC
|
||||||
static void
|
static void
|
||||||
gc_clear_slot_bits(struct heaps_slot *slot)
|
gc_clear_slot_bits(struct heaps_slot *slot)
|
||||||
{
|
{
|
||||||
memset(slot->header->mark_bits, 0, HEAP_BITMAP_LIMIT * sizeof(uintptr_t));
|
memset(slot->header->mark_bits, 0, HEAP_BITMAP_LIMIT * sizeof(uintptr_t));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
#if USE_RGENGC
|
|
||||||
static void
|
static void
|
||||||
gc_setup_mark_bits(struct heaps_slot *slot)
|
gc_setup_mark_bits(struct heaps_slot *slot)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user