De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers

This commit is contained in:
Slobodan Predolac 2026-06-08 13:26:02 -07:00
parent 6db4d0c468
commit 4de3a4c3d1
46 changed files with 123 additions and 59 deletions

View file

@ -404,6 +404,7 @@ prof_lookup(tsd_t *tsd, prof_bt_t *bt) {
return ret.p;
}
#ifdef JEMALLOC_JET
/* Used in unit tests. */
static prof_tdata_t *
prof_tdata_count_iter(
@ -449,6 +450,7 @@ prof_bt_count(void) {
return bt_count;
}
#endif
static void
prof_thread_name_write_tdata(prof_tdata_t *tdata, const char *thread_name) {
@ -1105,6 +1107,7 @@ prof_dump_impl(tsd_t *tsd, write_cb_t *prof_dump_write, void *cbopaque,
}
}
#ifdef JEMALLOC_JET
/* Used in unit tests. */
void
prof_cnt_all(prof_cnt_t *cnt_all) {
@ -1119,6 +1122,7 @@ prof_cnt_all(prof_cnt_t *cnt_all) {
prof_gctx_finish(tsd, &gctxs);
}
}
#endif
void
prof_bt_hash(const void *key, size_t r_hash[2]) {