Re: [PATCH 1/2] Make xmalloc and xrealloc thread-safe
On Wed, Mar 24, 2010 at 11:54 AM, Nicolas Pitre <nico@fluxnic.net> wrote:
Show 6 quoted lines
> Another solution could be for xmalloc() to use a function pointer for
> the method to use on malloc error path, which would default to a
> function calling release_pack_memory(size, -1). Then pack-objects.c
> would override the default with its own to acquire the read_mutex around
> the call to release_pack_memory(). That is probably the easiest
> solution for now.
Yea, that sounds like the most reasonable solution right now.
--
Shawn.