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

Function zone_force_lock

deps/jemalloc/src/zone.c:271–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271static void
272zone_force_lock(malloc_zone_t *zone) {
273 if (isthreaded) {
274 /*
275 * See the note in zone_force_unlock, below, to see why we need
276 * this.
277 */
278 assert(zone_force_lock_pid == -1);
279 zone_force_lock_pid = getpid();
280 jemalloc_prefork();
281 }
282}
283
284static void
285zone_force_unlock(malloc_zone_t *zone) {

Callers

nothing calls this directly

Calls 1

jemalloc_preforkFunction · 0.70

Tested by

no test coverage detected