summaryrefslogtreecommitdiffstats
path: root/byterun/gc_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/gc_ctrl.c')
-rw-r--r--byterun/gc_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/gc_ctrl.c b/byterun/gc_ctrl.c
index 0c2f167f6..c81530666 100644
--- a/byterun/gc_ctrl.c
+++ b/byterun/gc_ctrl.c
@@ -86,7 +86,7 @@ value gc_stat(v) /* ML */
res = alloc (13, 0);
Field (res, 0) = Val_long (stat_minor_words
- + Wsize_bsize (young_ptr - young_start));
+ + Wsize_bsize (young_end - young_ptr));
Field (res, 1) = Val_long (stat_promoted_words);
Field (res, 2) = Val_long (stat_major_words + allocated_words);
Field (res, 3) = Val_long (stat_minor_collections);