diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-21 13:01:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-21 13:01:37 +0000 |
commit | fd807aa2ea743a8bc95f08fa8eb7fd137f21f14a (patch) | |
tree | a89a19f3cb6151d6ca896c90c9f808e39b63f6a9 /gc.c | |
parent | b073b5347bc90a6786f1cdea32bcfce69430ea1b (diff) | |
download | ruby-fd807aa2ea743a8bc95f08fa8eb7fd137f21f14a.tar.gz |
* gc.c (rb_gc_set_params): set parameters always.
[ruby-dev:44648] [Bug #5467]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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) |