diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2007-05-04 14:05:13 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2007-05-04 14:05:13 +0000 |
commit | d148e1954eb28bccb8ccad3d3688ca7f8d182394 (patch) | |
tree | 1e33231bcba9ff11cd3d3b0e88de0a5aed51b0a7 /byterun/memory.h | |
parent | 125f3eec9c09db8c74b5230cf3b826cb0655d1bc (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.h')
-rw-r--r-- | byterun/memory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/byterun/memory.h b/byterun/memory.h index d3962bfa5..d369b14b9 100644 --- a/byterun/memory.h +++ b/byterun/memory.h @@ -94,11 +94,11 @@ color_t caml_allocation_color (void *hp); if (caml_gc_phase == Phase_mark) caml_darken (_old_, NULL); \ if (Is_block (val) && Is_young (val) \ && ! (Is_block (_old_) && Is_young (_old_))){ \ - *caml_ref_table_ptr++ = (fp); \ - if (caml_ref_table_ptr >= caml_ref_table_limit){ \ - CAMLassert (caml_ref_table_ptr == caml_ref_table_limit); \ - caml_realloc_ref_table (); \ + if (caml_ref_table.ptr >= caml_ref_table.limit){ \ + CAMLassert (caml_ref_table.ptr == caml_ref_table.limit); \ + caml_realloc_ref_table (&caml_ref_table); \ } \ + *caml_ref_table.ptr++ = (fp); \ } \ } \ }while(0) |