Merge branch 'np/malloc-threading' into maint

* np/malloc-threading:
  Thread-safe xmalloc and xrealloc needs a recursive mutex
  Make xmalloc and xrealloc thread-safe
This commit is contained in:
Junio C Hamano
2010-06-16 16:21:06 -07:00
7 changed files with 54 additions and 8 deletions

View File

@ -356,6 +356,8 @@ static inline void *gitmempcpy(void *dest, const void *src, size_t n)
extern void release_pack_memory(size_t, int);
extern void set_try_to_free_routine(void (*routine)(size_t));
extern char *xstrdup(const char *str);
extern void *xmalloc(size_t size);
extern void *xmallocz(size_t size);