Version française
Home     About     Download     Resources     Contact us    
Browse thread
Boehm-Demers-Weiser and ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Boehm-Demers-Weiser and ocaml
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