diff options
author | tmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-03 08:13:31 +0000 |
---|---|---|
committer | tmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-03 08:13:31 +0000 |
commit | 42582358768c50a3e0aa9455218070b19ce7c489 (patch) | |
tree | cb90882ed36c04553349aabd2d6ee0502b6f33f0 /vm.c | |
parent | 084b602d9a52b62a04d17f65ba1a9b8a767d1e3e (diff) | |
download | bundler-42582358768c50a3e0aa9455218070b19ce7c489.tar.gz |
* load.c (features_index_add_single): Move loaded_features_index array values off
the ruby heap. [Bug #9201] [ruby-core:58805]
* load.c (loaded_features_index_clear_i): Clean up off-heap array structure.
* vm.c (rb_vm_mark): Remove unnecessary mark_tbl for loaded_features_index.
This improves minor GC time by 15% in a large application.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1612,9 +1612,6 @@ rb_vm_mark(void *ptr) if (vm->loading_table) { rb_mark_tbl(vm->loading_table); } - if (vm->loaded_features_index) { - rb_mark_tbl(vm->loaded_features_index); - } rb_vm_trace_mark_event_hooks(&vm->event_hooks); |