MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / extent_purge_forced_default

Function extent_purge_forced_default

deps/jemalloc/src/extent.c:2021–2031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2019
2020#ifdef PAGES_CAN_PURGE_FORCED
2021static bool
2022extent_purge_forced_default(extent_hooks_t *extent_hooks, void *addr,
2023 size_t size, size_t offset, size_t length, unsigned arena_ind) {
2024 assert(addr != NULL);
2025 assert((offset & PAGE_MASK) == 0);
2026 assert(length != 0);
2027 assert((length & PAGE_MASK) == 0);
2028
2029 return pages_purge_forced((void *)((uintptr_t)addr +
2030 (uintptr_t)offset), length);
2031}
2032#endif
2033
2034static bool

Callers

nothing calls this directly

Calls 1

pages_purge_forcedFunction · 0.70

Tested by

no test coverage detected