diff options
author | Jason Evans <jasone@canonware.com> | 2013-01-22 03:56:34 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2013-01-22 03:56:34 (GMT) |
commit | 14a2c6a698a207ac3f3825443cf3441c8842e990 (patch) | |
tree | 8d570571b67c0c5aeace7d3d27a9c065c0337db6 /src/arena.c | |
parent | 13e4e24c42d17492f85cdd550c1e13d6f929307e (diff) | |
download | jemalloc-14a2c6a698a207ac3f3825443cf3441c8842e990.zip jemalloc-14a2c6a698a207ac3f3825443cf3441c8842e990.tar.gz jemalloc-14a2c6a698a207ac3f3825443cf3441c8842e990.tar.bz2 |
Avoid validating freshly mapped memory.
Move validation of supposedly zeroed pages from chunk_alloc() to
chunk_recycle(). There is little point to validating newly mapped
memory returned by chunk_alloc_mmap(), and memory that comes from sbrk()
is explicitly zeroed, so there is little risk to assuming that
chunk_alloc_dss() actually does the zeroing properly.
This relaxation of validation can make a big difference to application
startup time and overall system usage on platforms that use jemalloc as
the system allocator (namely FreeBSD).
Submitted by Ian Lepore <ian@FreeBSD.org>.
Diffstat (limited to 'src/arena.c')
0 files changed, 0 insertions, 0 deletions