mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-18 01:45:42 +03:00
Make tsd cleanup functions optional, remove noop cleanup functions.
This commit is contained in:
parent
e28b43a739
commit
7be2ebc23f
11 changed files with 23 additions and 81 deletions
|
|
@ -77,9 +77,14 @@ tsd_cleanup(void *arg)
|
|||
/* Do nothing. */
|
||||
break;
|
||||
case tsd_state_nominal:
|
||||
#define O(n, t) \
|
||||
#define MALLOC_TSD_cleanup_yes(n, t) \
|
||||
n##_cleanup(tsd);
|
||||
#define MALLOC_TSD_cleanup_no(n, t)
|
||||
#define O(n, t, c) \
|
||||
MALLOC_TSD_cleanup_##c(n, t)
|
||||
MALLOC_TSD
|
||||
#undef MALLOC_TSD_cleanup_yes
|
||||
#undef MALLOC_TSD_cleanup_no
|
||||
#undef O
|
||||
tsd->state = tsd_state_purgatory;
|
||||
tsd_set(tsd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue