if process_madvise is supported, call it when purging hpa

This commit is contained in:
Slobodan Predolac 2025-03-12 12:26:52 -07:00 committed by Qi Wang
parent 80e9001af3
commit f19f49ef3e
7 changed files with 387 additions and 3 deletions

View file

@ -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;