diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 04:19:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 04:19:21 +0000 |
commit | e7d8c473c17540dbc0b360efd689fbd2def69967 (patch) | |
tree | a641a587ea9d4d7eacbcdb84811b4e8896050e70 /gc.c | |
parent | a0bbf948b52437f0a8becf23fc8fbbddc0d0dda8 (diff) | |
download | ruby-e7d8c473c17540dbc0b360efd689fbd2def69967.tar.gz |
* gc.c (objspace_live_slot): live slot count should not include final
slot (contains T_ZOMBIE) count.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2743,7 +2743,7 @@ lazy_sweep_enable(void) static size_t objspace_live_slot(rb_objspace_t *objspace) { - return objspace->profile.total_allocated_object_num - objspace->profile.total_freed_object_num; + return objspace->profile.total_allocated_object_num - objspace->profile.total_freed_object_num - heap_pages_final_slots; } static size_t |