mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
parent
1e2c9ef8d6
commit
1027a2682b
1 changed files with 4 additions and 3 deletions
|
|
@ -479,13 +479,14 @@ a_name##tsd_wrapper_get(bool init) \
|
||||||
\
|
\
|
||||||
if (init && unlikely(wrapper == NULL)) { \
|
if (init && unlikely(wrapper == NULL)) { \
|
||||||
tsd_init_block_t block; \
|
tsd_init_block_t block; \
|
||||||
wrapper = tsd_init_check_recursion( \
|
wrapper = (a_name##tsd_wrapper_t *) \
|
||||||
&a_name##tsd_init_head, &block); \
|
tsd_init_check_recursion(&a_name##tsd_init_head, \
|
||||||
|
&block); \
|
||||||
if (wrapper) \
|
if (wrapper) \
|
||||||
return (wrapper); \
|
return (wrapper); \
|
||||||
wrapper = (a_name##tsd_wrapper_t *) \
|
wrapper = (a_name##tsd_wrapper_t *) \
|
||||||
malloc_tsd_malloc(sizeof(a_name##tsd_wrapper_t)); \
|
malloc_tsd_malloc(sizeof(a_name##tsd_wrapper_t)); \
|
||||||
block.data = wrapper; \
|
block.data = (void *)wrapper; \
|
||||||
if (wrapper == NULL) { \
|
if (wrapper == NULL) { \
|
||||||
malloc_write("<jemalloc>: Error allocating" \
|
malloc_write("<jemalloc>: Error allocating" \
|
||||||
" TSD for "#a_name"\n"); \
|
" TSD for "#a_name"\n"); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue