mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-15 00:15:39 +03:00
De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers
This commit is contained in:
parent
6db4d0c468
commit
4de3a4c3d1
46 changed files with 123 additions and 59 deletions
|
|
@ -8,6 +8,8 @@
|
|||
#include "jemalloc/internal/mutex.h"
|
||||
#include "jemalloc/internal/sz.h"
|
||||
|
||||
JET_EXTERN ehooks_t *base_ehooks_get_for_metadata(base_t *base);
|
||||
|
||||
/*
|
||||
* In auto mode, arenas switch to huge pages for the base allocator on the
|
||||
* second base block. a0 switches to thp on the 5th block (after 20 megabytes
|
||||
|
|
@ -545,7 +547,7 @@ base_ehooks_get(base_t *base) {
|
|||
return &base->ehooks;
|
||||
}
|
||||
|
||||
ehooks_t *
|
||||
JET_EXTERN ehooks_t *
|
||||
base_ehooks_get_for_metadata(base_t *base) {
|
||||
return &base->ehooks_base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue