From: Ian Campbell Subject: Re: [PATCH v6 08/12] libxl: ocaml: drop the ocaml heap lock before calling into libxl Date: Mon, 2 Dec 2013 14:10:50 +0000 Message-ID: <1385993450.7108.82.camel@kazak.uk.xensource.com> References: <1385507713-347-1-git-send-email-rob.hoes@citrix.com> <21143.29030.825290.256212@mariner.uk.xensource.com> <360717C0B01E6345BCBE64B758E22C2D1997FE@AMSPEX01CL03.citrite.net> <21143.34627.123297.562064@mariner.uk.xensource.com> <1385714393.23632.26.camel@dagon.hellion.org.uk> <1385722101.25763.10.camel@kazak.uk.xensource.com> <7D79EEB1-417B-447C-B5B5-DC90949D2978@citrix.com> <1385978138.7108.16.camel@kazak.uk.xensource.com> <360717C0B01E6345BCBE64B758E22C2D19EF94@AMSPEX01CL03.citrite.net> <1385985178.7108.54.camel@kazak.uk.xensource.com> <360717C0B01E6345BCBE64B758E22C2D19F018@AMSPEX01CL03.citrite.net> <1385985932.7108.60.camel@kazak.uk.xensource.com> <360717C0B01E6345BCBE64B758E22C2D19F083@AMSPEX01CL03.citrite.net> <1385987448.7108.67.camel@kazak.uk.xensource.com> <360717C0B01E6345BCBE64B758E22C2D19F296@AMSPEX01CL03.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <360717C0B01E6345BCBE64B758E22C2D19F296@AMSPEX01CL03.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: Ian Jackson , Dave Scott , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-12-02 at 14:06 +0000, Rob Hoes wrote: > > > I think the value on the heap can still move around, but registering a > > pointer to it as a root means that: > > > 1. the value does not get dropped by the GC; 2. the root/pointer will > > > be updated by the GC when the value itself moves, > > > > There is no way this #2 can happen, the C interface takes a "value *" > > and therefore is only able to update the value and not the pointer to it. > > I think the confusion here is due to the word "value". Indeed. [...] > I think we basically agree :) Yes, sorry for the noise. Ian.