diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gc.c | 9 |
2 files changed, 7 insertions, 7 deletions
@@ -1,3 +1,8 @@ +Fri Oct 21 22:01:35 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * gc.c (rb_gc_set_params): set parameters always. + [ruby-dev:44648] [Bug #5467] + Fri Oct 21 12:10:20 2011 Naohisa Goto <ngotogenome@gmail.com> * atomic.h: change Solaris checking macro because atomic_ops can work @@ -414,6 +414,7 @@ rb_objspace_alloc(void) return objspace; } +#endif static void initial_expand_heap(rb_objspace_t *objspace); @@ -458,6 +459,7 @@ rb_gc_set_params(void) } } +#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE static void gc_sweep(rb_objspace_t *); static void slot_sweep(rb_objspace_t *, struct heaps_slot *); static void gc_clear_mark_on_sweep_slots(rb_objspace_t *); @@ -490,11 +492,6 @@ rb_objspace_free(rb_objspace_t *objspace) } free(objspace); } -#else -void -rb_gc_set_params(void) -{ -} #endif /* tiny heap size */ @@ -1116,7 +1113,6 @@ init_heap(rb_objspace_t *objspace) finalizer_table = st_init_numtable(); } -#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE static void initial_expand_heap(rb_objspace_t *objspace) { @@ -1126,7 +1122,6 @@ initial_expand_heap(rb_objspace_t *objspace) add_heap_slots(objspace, min_size - heaps_used); } } -#endif static void set_heaps_increment(rb_objspace_t *objspace) |