MCPcopy Create free account
hub / github.com/F-Stack/f-stack / InitServerLast

Function InitServerLast

app/redis-6.2.6/src/server.c:3375–3380  ·  view source on GitHub ↗

Some steps in server initialization need to be done last (after modules * are loaded). * Specifically, creation of threads due to a race bug in ld.so, in which * Thread Local Storage initialization collides with dlopen call. * see: https://sourceware.org/bugzilla/show_bug.cgi?id=19329 */

Source from the content-addressed store, hash-verified

3373 * Thread Local Storage initialization collides with dlopen call.
3374 * see: https://sourceware.org/bugzilla/show_bug.cgi?id=19329 */
3375void InitServerLast() {
3376 bioInit();
3377 initThreadedIO();
3378 set_jemalloc_bg_thread(server.jemalloc_bg_thread);
3379 server.initial_memory_usage = zmalloc_used_memory();
3380}
3381
3382/* Parse the flags string description 'strflags' and set them to the
3383 * command 'c'. If the flags are all valid C_OK is returned, otherwise

Callers 1

mainFunction · 0.85

Calls 4

bioInitFunction · 0.85
initThreadedIOFunction · 0.85
set_jemalloc_bg_threadFunction · 0.85
zmalloc_used_memoryFunction · 0.85

Tested by

no test coverage detected