9dcad2dfd1
For the non-TLS case (as on OS X), if the "thread.{de,}allocatedp" mallctl was called before any allocation occurred for that thread, the TSD was still NULL, thus putting the application at risk of dereferencing NULL. Fix this by refactoring the initialization code, and making it part of the conditional logic for all per thread allocation counter accesses. |
||
---|---|---|
.. | ||
allocated.c | ||
allocated.exp | ||
allocm.c | ||
allocm.exp | ||
jemalloc_test.h.in | ||
mremap.c | ||
mremap.exp | ||
posix_memalign.c | ||
posix_memalign.exp | ||
rallocm.c | ||
rallocm.exp | ||
thread_arena.c | ||
thread_arena.exp |