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

Re: [Xen-devel] What does this comment mean in tools/libxl/libxl.h?



On Mon, 2012-07-23 at 04:41 +0100, éç wrote:
> Hi all:
>     This is a comment paragraph in libxl.h : "
> 112 *     Note that there are two ways to change an allocation from this      
>                                                                               
>                                                                               
>   
> 113 *     category to the "public" category. Either the implementation        
>                                                                               
>                                                                               
>   
> 114 *     is kept internal and a wrapper function duplicates all memory       
>                                                                               
>                                                                               
>   
> 115 *     allocations so that they are suitable for return to external        
>                                                                               
>                                                                               
>   
> 116 *     callers or the implementation uses plain malloc() et al calls       
>                                                                               
>                                                                               
>   
> 117 *     and an internal wrapper adds the relevant pointers to the gc.       
>                                                                               
>                                                                               
>   
> 118 *     The latter method is preferred for obvious performance reasons.  "
> 
> 
> What's the meaning of  the latter method "the implementation uses
> plain malloc() et al calls and an internal wrapper adds the relevant
> pointers to the gc",

> can anyone make an example for that?

Look for uses of the libxl__gc type and functions which take a parameter
named (usually) gc.

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®.