mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 12:43:16 +00:00
Make tsd cleanup functions optional, remove noop cleanup functions.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user