1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (rb_gc_set_params): call initial_expand_heap if

initial_heap_min_slots is set.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nari 2011-06-14 02:13:52 +00:00
parent 8c79b8b6b8
commit b6135f1cd7
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 14 11:05:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
* gc.c (rb_gc_set_params): call initial_expand_heap if
initial_heap_min_slots is set.
Tue Jun 14 11:02:08 2011 Narihiro Nakamura <narihiro@netlab.jp>
* gc.c: use size_t.

2
gc.c
View file

@ -430,6 +430,7 @@ rb_gc_set_params(void)
printf("heap_min_slots=%d (%d)\n", heap_min_slots_i, initial_heap_min_slots);
if (heap_min_slots_i > 0) {
initial_heap_min_slots = heap_min_slots_i;
initial_expand_heap(&rb_objspace);
}
}
@ -441,7 +442,6 @@ rb_gc_set_params(void)
initial_free_min = free_min_i;
}
}
initial_expand_heap(&rb_objspace);
}
static void gc_sweep(rb_objspace_t *);