* 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
This commit is contained in:
nobu 2011-10-21 13:01:37 +00:00
parent b073b5347b
commit fd807aa2ea
2 changed files with 7 additions and 7 deletions

View File

@ -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

9
gc.c
View File

@ -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)