summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
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 3b0becadf8..30938e1563 100644
--- a/gc.c
+++ b/gc.c
@@ -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