summaryrefslogtreecommitdiffstats
path: root/byterun/memory.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2002-02-01 12:23:58 +0000
committerDamien Doligez <damien.doligez-inria.fr>2002-02-01 12:23:58 +0000
commit15c25173cfd956592d37a7a7fe119cb0374437c7 (patch)
tree5ec909e86640d6fcdfd626c3bc4484189ec4fc2b /byterun/memory.c
parentcb046b351af420933a158101e57112d9a6cd81d2 (diff)
ajout Gc.top_heap_words
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4335 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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;
}