From: Shawn Pearce Date: Wed, 24 Mar 2010 19:57:38 GMT Subject: Re: [PATCH 1/2] Make xmalloc and xrealloc thread-safe Message-ID: In-Reply-To: On Wed, Mar 24, 2010 at 11:54 AM, Nicolas Pitre wrote: > 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.