mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Try to decommit new chunks.
Always leave decommit disabled on non-Windows systems.
This commit is contained in:
@@ -145,7 +145,8 @@ chunk_alloc_dss(arena_t *arena, void *new_addr, size_t size, size_t alignment,
|
||||
ret, size);
|
||||
memset(ret, 0, size);
|
||||
}
|
||||
*commit = true;
|
||||
if (!*commit)
|
||||
*commit = pages_decommit(ret, size);
|
||||
return (ret);
|
||||
}
|
||||
} while (dss_prev != (void *)-1);
|
||||
|
||||
Reference in New Issue
Block a user