Let's also set madvise(MADV_DONTDUMP), otherwise a crash of the process can result in us allocating all memory in the mmap'ed region for dumping purposes. This change implies that the mmap'ed rings won't be included in a coredump. If ever required for debugging purposes, we could mark...
Sure, the approach makes sense. You are more than welcome to contribute the full patch: - add a run-time flag use_madv_dontdump, on by default - add a test which tests use_madv_dontdump=1, use_madv_dontdump=0, and default