mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
if process_madvise is supported, call it when purging hpa
This commit is contained in:
parent
80e9001af3
commit
f19f49ef3e
7 changed files with 387 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ struct hpa_hooks_s {
|
|||
void (*dehugify)(void *ptr, size_t size);
|
||||
void (*curtime)(nstime_t *r_time, bool first_reading);
|
||||
uint64_t (*ms_since)(nstime_t *r_time);
|
||||
bool (*vectorized_purge)(void* vec, size_t vlen, size_t nbytes);
|
||||
};
|
||||
|
||||
extern const hpa_hooks_t hpa_hooks_default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue