summaryrefslogtreecommitdiff
path: root/byterun/memory.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2012-04-17 08:21:52 +0000
committerDamien Doligez <damien.doligez-inria.fr>2012-04-17 08:21:52 +0000
commitb510b67cb56e96588b81c537fab0d100c2fc0aac (patch)
tree9bf4b01cffade6422928371850720184530aac6a /byterun/memory.c
parent38162c1196a71da8dfb4604b2124cf8b66a72dd7 (diff)
downloadocaml-b510b67cb56e96588b81c537fab0d100c2fc0aac.tar.gz
PR#5389: compaction sometimes leaves a very large heap
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12365 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/memory.c')
-rw-r--r--byterun/memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/byterun/memory.c b/byterun/memory.c
index b0801f130b..b99825d185 100644
--- a/byterun/memory.c
+++ b/byterun/memory.c
@@ -255,6 +255,8 @@ void caml_free_for_heap (char *mem)
caller. All other blocks must have the color [caml_allocation_color(m)].
The caller must update [caml_allocated_words] if applicable.
Return value: 0 if no error; -1 in case of error.
+
+ See also: caml_compact_heap, which duplicates most of this function.
*/
int caml_add_to_heap (char *m)
{