diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-26 07:07:35 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-26 07:07:35 +0000 |
commit | b385f19c922b9186537150df3124d72d14e9c213 (patch) | |
tree | 28fb84b0ca12d7dfaab809f07234b22077cec8f4 /gc.c | |
parent | 9493eb7260af756626a83359e22921a786e0ba3b (diff) |
* gc.c (gc_prof_set_heap_info): fix compile error when
GC_PROFILE_MORE_DETAIL != 0.
the patch is provided by ko1 (Koichi Sasada).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4099,7 +4099,7 @@ gc_prof_set_malloc_info(rb_objspace_t *objspace) static inline void gc_prof_set_heap_info(rb_objspace_t *objspace, gc_profile_record *record) { - size_t live = objspace->heap.live_num; + size_t live = objspace_live_num(objspace); size_t total = heaps_used * HEAP_OBJ_LIMIT; record->heap_use_slots = heaps_used; |