mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-28 06:53:42 +08:00
Each class slice a thread opens took one madvise(MADV_DODUMP) call, which takes the mmap lock for writing, and the threads of a worker executable open hundreds of slices as they start. The slices are now made dumpable only when the kernel would write a core of the process: when kernel.core_pattern starts with '|' or '@', or when RLIMIT_CORE is above 0. The reservation stays MADV_DONTDUMP in every case.