Do not call release_pack_memory in malloc wrappers when GIT_TRACE is used
authorJohannes Sixt <j6t@kdbg.org>
Sat, 8 May 2010 15:18:06 +0000 (17:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 May 2010 05:28:01 +0000 (22:28 -0700)
commit3a0942598ce33b195bfaaf250b2da23e4eceb3c6
treeafce18ab3896d8705becafeeea96da86ca17ff4d
parent851c34b04e0ce866e15c28e144986eca7533a6f4
Do not call release_pack_memory in malloc wrappers when GIT_TRACE is used

This avoids a potential race condition when async procedures are
implemented as threads where release_pack_memory() can be called from
different threads without locking under memory pressure.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace.c