MCPcopy Create free account
hub / github.com/antirez/disque / jemalloc_constructor

Function jemalloc_constructor

deps/jemalloc/src/jemalloc.c:2510–2516  ·  view source on GitHub ↗

* If an application creates a thread before doing any allocation in the main * thread, then calls fork(2) in the main thread followed by memory allocation * in the child process, a race can occur that results in deadlock within the * child: the main thread may have forked while the created thread had * partially initialized the allocator. Ordinarily jemalloc prevents * fork/malloc races via

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

malloc_initFunction · 0.85

Tested by

no test coverage detected