From: Richard Jones <rich@annexia.org>
To: Yitzhak Mandelbaum <yitzhakm@CS.Princeton.EDU>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Boehm-Demers-Weiser and ocaml
Date: Fri, 16 Jan 2009 16:00:33 +0000 [thread overview]
Message-ID: <20090116160032.GB8664@annexia.org> (raw)
In-Reply-To: <F00F5B35-941D-403A-AD70-AC7769AAA5EF@cs.princeton.edu>
On Fri, Jan 16, 2009 at 09:46:35AM -0500, Yitzhak Mandelbaum wrote:
> Has anyone tried to interface ocaml code with C libraries which depend
> on the BDW garbage collector? If so, are there any pitfalls to be
> aware of? Note that I have a fair amount of experience interfacing
> with ordinary C code, I've just never tried to do so in the presence
> of the BDW gc.
I haven't so just speculating here ...
Can the BDW collector be told about areas of memory which it must
not examine?
There is a useful macro used inside the OCaml compiled called (IIRC?)
Is_in_heap(ptr) which can tell you if a pointer points to something on
the OCaml heap (ie. something to be ignored).
Rich.
--
Richard Jones
Red Hat
prev parent reply other threads:[~2009-01-16 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 14:46 Yitzhak Mandelbaum
2009-01-16 16:00 ` Richard Jones [this message]
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=20090116160032.GB8664@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@yquem.inria.fr \
--cc=yitzhakm@CS.Princeton.EDU \
/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