jemalloc/test
Slobodan Predolac 00f53eb337 Add follow-up test for postfork multithread
Fix FreeBSD postfork child handler never being called: FreeBSD's libthr
calls _malloc_postfork in both parent and child (see freebsd-src
lib/libthr/thread/thr_fork.c), but jemalloc mapped it to the parent
handler only.  Detect the child via getpid() and route to
jemalloc_postfork_child, which resets nthreads and rebuilds the
descriptor queue.

Remove the child_survivor_bytes vs pre_survivor_bytes comparison: on
macOS where jemalloc registers as the default zone, internal allocations
during the postfork handler (pthread_mutex_init) can inflate the
surviving thread's tcache.

Add double-fork test to verify prefork pid is refreshed correctly when a
child process forks again.
2026-05-20 08:57:37 -04:00
..
analyze Revert PR #2608: Manually revert commits 70c94d..f9c0b5 2026-03-10 18:14:33 -07:00
include/test Run single subtest from a test file 2026-03-10 18:14:33 -07:00
integration Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
src Remove generic experimental hooks 2026-05-13 18:27:43 -04:00
stress Remove generic experimental hooks 2026-05-13 18:27:43 -04:00
unit Add follow-up test for postfork multithread 2026-05-20 08:57:37 -04:00
test.sh.in Renaming limit_usize_gap to disable_large_size_classes 2025-05-06 14:47:35 -07:00