ruby-changes:29079
From: nobu <ko1@a...>
Date: Fri, 7 Jun 2013 11:50:16 +0900 (JST)
Subject: [ruby-changes:29079] nobu:r41131 (trunk): * gc.c (gc_clear_slot_bits): used only if no RGenGC.
nobu 2013-06-07 11:49:53 +0900 (Fri, 07 Jun 2013) New Revision: 41131 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41131 Log: * gc.c (gc_clear_slot_bits): used only if no RGenGC. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 41130) +++ gc.c (revision 41131) @@ -2116,13 +2116,13 @@ lazy_sweep_enable(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L2116 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/