mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
if process_madvise is supported, call it when purging hpa
This commit is contained in:
committed by
Qi Wang
parent
80e9001af3
commit
f19f49ef3e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user