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

Function extent_need_manual_zero

deps/jemalloc/src/extent.c:1112–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112static bool
1113extent_need_manual_zero(arena_t *arena) {
1114 /*
1115 * Need to manually zero the extent on repopulating if either; 1) non
1116 * default extent hooks installed (in which case the purge semantics may
1117 * change); or 2) transparent huge pages enabled.
1118 */
1119 return (!arena_has_default_hooks(arena) ||
1120 (opt_thp == thp_mode_always));
1121}
1122
1123/*
1124 * Tries to satisfy the given allocation request by reusing one of the extents

Callers 2

extent_recycleFunction · 0.85
extent_grow_retainedFunction · 0.85

Calls 1

arena_has_default_hooksFunction · 0.85

Tested by

no test coverage detected