From: Ian Campbell Subject: Re: [PATCH v3-RESEND 12/28] libxl: ocaml: make Val_defbool GC-proof Date: Thu, 31 Oct 2013 19:10:51 +0000 Message-ID: <1383246651.5436.93.camel@dagon.hellion.org.uk> References: <1382362365-6645-1-git-send-email-rob.hoes@citrix.com> <1382362365-6645-13-git-send-email-rob.hoes@citrix.com> <1383243318.5436.52.camel@dagon.hellion.org.uk> <21106.42896.431954.905561@mariner.uk.xensource.com> <21106.43030.890352.340652@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21106.43030.890352.340652@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Dave Scott , Rob Hoes , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2013-10-31 at 18:57 +0000, Ian Jackson wrote: > Ian Jackson writes ("Re: [PATCH v3-RESEND 12/28] libxl: ocaml: make Val_defbool GC-proof"): > > What difference do you think it makes whether things are "assigned to > > variables" or not ? > > > > Bonus if your explanation refers to sequence points. > > Perhaps these special CAMLlocal macros make the things volatile or > something, I guess. They seem to end up being structs. > Perhaps you could refer me to the Ocaml docs ? Hah! I usually scrobble around under /usr/include/caml/*.h I also referenced http://www.linux-nantes.org/~fmonnier/ocaml/ocaml-wrapping-c.php in the past (and there's a link in the series somewhere) but sadly it appears to be 404 now -- Rob can you find a replacement? (CCing Dave, who seems to understand some off this stuff)