I guess I have two questions:
(1) Is calling Gc.compact () guaranteed to call the finalizer of any
object which is no longer reachable, under all circumstances? Or
would there be some case where it wouldn't be called?
(2) I have a large mixed OCaml / C program[a] where somehow calling
Gc.compact isn't calling the destructor of a (very) large object.
Manual code inspection has not revealed anything so far --
superficially it appears we are not holding any references to the
object. Is there any method / library / tool that can inspect the
OCaml heap and find references to an object?
Rich.
[a] https://github.com/libguestfs/libguestfs/tree/master/v2v
--
Richard Jones
Red Hat
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs