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

* 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
This commit is contained in:
ko1 2014-06-03 04:19:21 +00:00
parent a0bbf948b5
commit e7d8c473c1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 3 13:18:24 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (objspace_live_slot): live slot count should not include final
slot (contains T_ZOMBIE) count.
Tue Jun 3 13:03:21 2014 Koichi Sasada <ko1@atdot.net> Tue Jun 3 13:03:21 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (obj_free): fix spacing. * gc.c (obj_free): fix spacing.

2
gc.c
View file

@ -2743,7 +2743,7 @@ lazy_sweep_enable(void)
static size_t static size_t
objspace_live_slot(rb_objspace_t *objspace) 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 static size_t