diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-01 01:00:40 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-01 01:00:40 +0000 |
commit | 3d2451d99651a0f0a3c1ecd2c12b5a1264b4b6b9 (patch) | |
tree | bc05eda230b0735385d863e30e56dce03567dfab /gc.c | |
parent | 0003d051dd161d26e4df67313de912e89479c2d5 (diff) |
* gc.c (add_heap_slots, init_heap): reset heaps_inc zero when
heap slots are expanded by environment variable RUBY_HEAP_MIN_SLOTS.
[ruby-core:39777] [Bug #5380]
* test/ruby/test_gc.rb (test_gc_parameter): add test for it.
* test/ruby/envutil.rb (assert_normal_exit): add :child_env option to
enable pass environemnt variables to child process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1090,6 +1090,7 @@ add_heap_slots(rb_objspace_t *objspace, size_t add) for (i = 0; i < add; i++) { assign_heap_slot(objspace); } + heaps_inc = 0; } static void @@ -1106,7 +1107,6 @@ init_heap(rb_objspace_t *objspace) } #endif - heaps_inc = 0; objspace->profile.invoke_time = getrusage_time(); finalizer_table = st_init_numtable(); } |