[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
> 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
It isn't in general a bug to have nested calls to GC_INIT.
Xen-devel mailing list