<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/fa24158b66ee08b5fc4d84873a7ad2bb"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-01-16T16:00:35"
  subject="Re: [Caml-list] Boehm-Demers-Weiser and ocaml"
  prev="2009/01/7f3ed02f83caca6c67c43c70d569e674"
  next="2009/01/d0510a2ea3cd55297cb1fd0d9dd54338"
  prev-in-thread="2009/01/7d9ffe8f9682d9fa8b4a85b38c339f33"
  prev-thread="2009/01/8f74cee195e9898253fcdf3d0b9e3eea"
  next-thread="2009/01/f038b8a453e89bfa6350495a826080fe"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Boehm-Demers-Weiser and ocaml">
<msg 
  url="2009/01/7d9ffe8f9682d9fa8b4a85b38c339f33"
  from="Yitzhak Mandelbaum &lt;yitzhakm@C...&gt;"
  author="Yitzhak Mandelbaum"
  date="2009-01-16T14:46:41"
  subject="Boehm-Demers-Weiser and ocaml">
<msg 
  url="2009/01/fa24158b66ee08b5fc4d84873a7ad2bb"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-01-16T16:00:35"
  subject="Re: [Caml-list] Boehm-Demers-Weiser and ocaml">
</msg>
</msg>
</thread>

<contents>
On Fri, Jan 16, 2009 at 09:46:35AM -0500, Yitzhak Mandelbaum wrote:
&gt; Has anyone tried to interface ocaml code with C libraries which depend  
&gt; on the BDW garbage collector? If so, are there any pitfalls to be  
&gt; aware of? Note that I have a fair amount of experience interfacing  
&gt; with ordinary C code, I've just never tried to do so in the presence  
&gt; 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

</contents>

</message>

