summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2012-04-21 20:33:48 (GMT)
committerJason Evans <jasone@canonware.com>2012-04-21 20:33:48 (GMT)
commit8f0e0eb1c01d5d934586ea62e519ca8b8637aebc (patch)
treec0281d50a3731242730249b7285a67fec4536428 /doc
parent606f1fdc3cdbc700717133ca56685313caea24bb (diff)
downloadjemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.zip
jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.tar.gz
jemalloc-8f0e0eb1c01d5d934586ea62e519ca8b8637aebc.tar.bz2
Fix a memory corruption bug in chunk_alloc_dss().
Fix a memory corruption bug in chunk_alloc_dss() that was due to claiming newly allocated memory is zeroed. Reverse order of preference between mmap() and sbrk() to prefer mmap(). Clean up management of 'zero' parameter in chunk_alloc*().
Diffstat (limited to 'doc')
-rw-r--r--doc/jemalloc.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in
index f78f423..e8a5722 100644
--- a/doc/jemalloc.xml.in
+++ b/doc/jemalloc.xml.in
@@ -444,9 +444,9 @@ for (i = 0; i < nbins; i++) {
suboptimal for several reasons, including race conditions, increased
fragmentation, and artificial limitations on maximum usable memory. If
<option>--enable-dss</option> is specified during configuration, this
- allocator uses both <citerefentry><refentrytitle>sbrk</refentrytitle>
+ allocator uses both <citerefentry><refentrytitle>mmap</refentrytitle>
<manvolnum>2</manvolnum></citerefentry> and
- <citerefentry><refentrytitle>mmap</refentrytitle>
+ <citerefentry><refentrytitle>sbrk</refentrytitle>
<manvolnum>2</manvolnum></citerefentry>, in that order of preference;
otherwise only <citerefentry><refentrytitle>mmap</refentrytitle>
<manvolnum>2</manvolnum></citerefentry> is used.</para>