summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 07:07:35 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 07:07:35 +0000
commitb385f19c922b9186537150df3124d72d14e9c213 (patch)
tree28fb84b0ca12d7dfaab809f07234b22077cec8f4 /gc.c
parent9493eb7260af756626a83359e22921a786e0ba3b (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 4a2864ee70..84af4d6f58 100644
--- a/gc.c
+++ b/gc.c
@@ -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;