Hide methods from jemalloc_init.h that are not used in other units

This commit is contained in:
Slobodan Predolac 2026-05-05 10:27:04 -07:00 committed by Guangli Dai
parent a34a8c5e13
commit 6e7c364e90
3 changed files with 4 additions and 18 deletions

View file

@ -39,12 +39,14 @@ malloc_is_initializer(void) {
#endif
}
bool
#ifdef JEMALLOC_THREADED_INIT
static bool
malloc_initializer_is_set(void) {
return malloc_initializer != NO_INITIALIZER;
}
#endif
void
static void
malloc_initializer_set(void) {
malloc_initializer = INITIALIZER;
}