[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxl: mark internal functions hidden



Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxl: mark internal functions 
hidden"):
> BTW, I noticed a bunch of libxl__ functions which take a ctx instead of
> a gc while doing this.

Yes, there are a few.

In some cases this is to make it easier to call them from
infrastructure or macros which doesn't necessarily have a gc, eg the
logging functions, and the way that libxl__ao_create obviously is
_creating_ the gc (as well as the ao) for its caller.

In other cases it's just to avoid needlessly pratting about with
GC_INIT.  (Note that in the past, that pratting about was considerably
more verbose.)

It isn't in general a bug to have nested calls to GC_INIT.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.