Module Name: src Committed By: joerg Date: Fri May 15 14:37:21 UTC 2020
Modified Files: src/external/bsd/jemalloc/dist/src: jemalloc.c src/lib/libc/gen: pthread_atfork.c src/lib/libc/include: extern.h src/lib/libc/stdlib: jemalloc.c malloc.c Log Message: Hook up proper fork lock handling for malloc: - lock all relevant mutexes just before fork - unlock all mutexes just after fork in the parent - full reinit non-spinlocks in the child This is not using the normal pthread_atfork interface to ensure order of operation, malloc is used as implementation detail too often. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/bsd/jemalloc/dist/src/jemalloc.c cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/pthread_atfork.c cvs rdiff -u -r1.25 -r1.26 src/lib/libc/include/extern.h cvs rdiff -u -r1.52 -r1.53 src/lib/libc/stdlib/jemalloc.c cvs rdiff -u -r1.59 -r1.60 src/lib/libc/stdlib/malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.