caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Bertrand Jeannet <Bertrand.Jeannet@inria.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Mismatch between Gc.full_major() documentation and behaviour
Date: Wed, 11 Dec 2013 12:46:21 +0100	[thread overview]
Message-ID: <52A8508D.2050000@inria.fr> (raw)

According to the documentation, the sequence 
"Gc.major();Gc.full_major()" should be equivalent to "Gc.full_major()", 
as Gc.full_major() is told to terminate the current major gc and perform 
a complete new cycle.

In my case it is not the case: "Gc.major(); Gc.full_major()" performs 
more calls to finalisation functions than "Gc.full_major()".

My context: I use a weak hashtables containing finalised value (with 
Gc.finalise).

The documentation of Weak module specifies that the finalization 
function is called after the weak hashtbl/array has been set to none.

Does someone know the explanation of this ?



             reply	other threads:[~2013-12-11 11:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11 11:46 Bertrand Jeannet [this message]
2013-12-11 13:01 ` Török Edwin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A8508D.2050000@inria.fr \
    --to=bertrand.jeannet@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).