mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 12:43:16 +00:00
Convert the production source files in src/ (69 .c/.cpp) and test/jemalloc_test.h.in to list the headers they actually use, then delete the umbrella. Three consolidated headers (peak_event.h, prof_sys.h, sz.h) also gain explicit transitive includes. Every translation unit now declares what it uses. A missing include now fails at the failing file rather than silently working because something upstream pulled in the world.
16 lines
495 B
C
16 lines
495 B
C
#include "jemalloc/internal/jemalloc_preamble.h"
|
|
|
|
#include "jemalloc/internal/exp_grow.h"
|
|
|
|
void
|
|
exp_grow_init(exp_grow_t *exp_grow) {
|
|
/*
|
|
* Enforce a minimal of 2M grow, which is convenient for the huge page
|
|
* use cases. Avoid using HUGEPAGE as the value though, because on some
|
|
* platforms it can be very large (e.g. 512M on aarch64 w/ 64K pages).
|
|
*/
|
|
const size_t min_grow = (size_t)2 << 20;
|
|
exp_grow->next = sz_psz2ind(min_grow);
|
|
exp_grow->limit = sz_psz2ind(SC_LARGE_MAXCLASS);
|
|
}
|