mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-24 20:02:14 +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
|
|
@ -644,20 +644,6 @@ arena_choose_hard(tsd_t *tsd, bool internal)
|
|||
return (ret);
|
||||
}
|
||||
|
||||
void
|
||||
thread_allocated_cleanup(tsd_t *tsd)
|
||||
{
|
||||
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
void
|
||||
thread_deallocated_cleanup(tsd_t *tsd)
|
||||
{
|
||||
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
void
|
||||
iarena_cleanup(tsd_t *tsd)
|
||||
{
|
||||
|
|
@ -693,20 +679,6 @@ arenas_tdata_cleanup(tsd_t *tsd)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
narenas_tdata_cleanup(tsd_t *tsd)
|
||||
{
|
||||
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
void
|
||||
arenas_tdata_bypass_cleanup(tsd_t *tsd)
|
||||
{
|
||||
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
static void
|
||||
stats_print_atexit(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue