summaryrefslogtreecommitdiffstats
path: root/byterun/memory.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2007-05-04 14:05:13 +0000
committerDamien Doligez <damien.doligez-inria.fr>2007-05-04 14:05:13 +0000
commitd148e1954eb28bccb8ccad3d3688ca7f8d182394 (patch)
tree1e33231bcba9ff11cd3d3b0e88de0a5aed51b0a7 /byterun/memory.c
parent125f3eec9c09db8c74b5230cf3b826cb0655d1bc (diff)
grosse amelioration des Weak a courte duree de vie
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/memory.c')
-rw-r--r--byterun/memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/byterun/memory.c b/byterun/memory.c
index 03d728693..660263e2e 100644
--- a/byterun/memory.c
+++ b/byterun/memory.c
@@ -358,10 +358,10 @@ void caml_initialize (value *fp, value val)
{
*fp = val;
if (Is_block (val) && Is_young (val) && Is_in_heap (fp)){
- *caml_ref_table_ptr++ = fp;
- if (caml_ref_table_ptr >= caml_ref_table_limit){
- caml_realloc_ref_table ();
+ if (caml_ref_table.ptr >= caml_ref_table.limit){
+ caml_realloc_ref_table (&caml_ref_table);
}
+ *caml_ref_table.ptr++ = fp;
}
}