From: Pedro Borges <pdhb.lists@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Long running finalizers and global lock
Date: Tue, 5 Apr 2011 18:10:39 +0100 [thread overview]
Message-ID: <BANLkTin4PqRfVncz1r+JquTr9zYJXGi_+g@mail.gmail.com> (raw)
Hi again,
the reference manual states:
> Note: the finalize, compare, hash, serialize and deserialize
functions attached to custom block
> descriptors must never trigger a garbage collection. Within these
functions, do not call any of
> the Caml allocation functions, and do not perform a callback into
Caml code. Do not use
> CAMLparam to register the parameters to these functions, and do not
use CAMLreturn to return the result.
I have a long running function inse a finalizer is it safe to release
and acquire the runtime lock ?
Best Regards
next reply other threads:[~2011-04-05 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 17:10 Pedro Borges [this message]
2011-04-06 15:20 ` Goswin von Brederlow
2011-04-07 12:05 ` Damien Doligez
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=BANLkTin4PqRfVncz1r+JquTr9zYJXGi_+g@mail.gmail.com \
--to=pdhb.lists@gmail.com \
--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