summaryrefslogtreecommitdiffstats
path: root/byterun/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/memory.c')
-rw-r--r--byterun/memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/byterun/memory.c b/byterun/memory.c
index fc0fe57a7..88336d6b9 100644
--- a/byterun/memory.c
+++ b/byterun/memory.c
@@ -136,6 +136,7 @@ int add_to_heap (header_t *mem)
if (m + Chunk_size (m) > heap_end) heap_end = m + Chunk_size (m);
stat_heap_size += Chunk_size (m);
+ if (stat_heap_size > stat_top_heap_size) stat_top_heap_size = stat_heap_size;
return 0;
}