English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] fumbling with Gc.finalise
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-05 (12:04)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] fumbling with Gc.finalise
From: Chris Quinn <cq@htec.demon.co.uk>

>Would it not be more reasonable to treat the argument and
>finalisation closure as roots until the latter has actually completed

That's exactly what the current system does.  I guess what you want is
that the finalisation function for a value is not called until the
finalisation functions of all values that depend on it have finished
execution.  There are two problems with that:

1. What happens to circular values (a circular value depends on
   itself, directly or indirectly).

2. How to implement it with reasonable efficiency.  I don't have a

-- Damien
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr