Browse Source
By providing a hook for the routine responsible for trying to free some memory on malloc failure, we can ensure that the called routine is protected by the appropriate locks when threads are in play. The obvious offender here was pack-objects which was calling xmalloc() within threads while release_pack_memory() is not thread safe. Signed-off-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
Nicolas Pitre
15 years ago
committed by
Junio C Hamano
3 changed files with 27 additions and 4 deletions
Loading…
Reference in new issue