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

Re: [Xen-devel] [PATCH RFC V2 05/10] libxl_json: introduce parser functions for builtin types



Wei Liu writes ("Re: [PATCH RFC V2 05/10] libxl_json: introduce parser 
functions for builtin types"):
> I was wrong about this.
> 
> This (and other allocations alike) should use calloc instead of GC
> allocation. We don't want GC to free the memory until dispose is called.

Instead of calloc, you should use libxl__zalloc(NOGC,...).  That has
the right error handling (and you don't need to check for errors
yourself).

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