summaryrefslogtreecommitdiff
path: root/byterun/weak.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>1997-06-02 12:51:51 +0000
committerDamien Doligez <damien.doligez-inria.fr>1997-06-02 12:51:51 +0000
commite399e61725b93ac152ed89280141d32de23d7124 (patch)
treeba3132796e06d10c7ff762980628c5708ebd0efb /byterun/weak.c
parent50a74afc4781eb3d3e91cf3c6ac37a1598c1eaf4 (diff)
downloadocaml-e399e61725b93ac152ed89280141d32de23d7124.tar.gz
roots.c: variable inutile
compact.c weak.c: bug entre pointeurs faibles et compactage. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1577 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/weak.c')
-rw-r--r--byterun/weak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/weak.c b/byterun/weak.c
index 607ac88c6c..4cc8cee852 100644
--- a/byterun/weak.c
+++ b/byterun/weak.c
@@ -66,7 +66,7 @@ value weak_get (ar, n) /* ML */
res = None_val;
}else{
elt = Field (ar, offset);
- darken (elt, NULL);
+ if (gc_phase == Phase_mark) darken (elt, NULL);
Begin_root(elt);
res = alloc (1, Some_tag);
End_roots ();