Replace --disable-munmap with opt.munmap.
Control use of munmap(2) via a run-time option rather than a compile-time option (with the same per platform default). The old behavior of --disable-munmap can be achieved with --with-malloc-conf=munmap:false. This partially resolves #580.
This commit is contained in:
@@ -251,8 +251,8 @@ TEST_BEGIN(test_arena_destroy_hooks_default) {
|
||||
TEST_END
|
||||
|
||||
/*
|
||||
* Actually unmap extents, regardless of config_munmap, so that attempts to
|
||||
* access a destroyed arena's memory will segfault.
|
||||
* Actually unmap extents, regardless of opt_munmap, so that attempts to access
|
||||
* a destroyed arena's memory will segfault.
|
||||
*/
|
||||
static bool
|
||||
extent_dalloc_unmap(extent_hooks_t *extent_hooks, void *addr, size_t size,
|
||||
|
Reference in New Issue
Block a user