Bug 464995 - avoid reads of size 1 in jemalloc; r=benjamin
authorTaras Glek <tglek@mozilla.com>
Wed, 10 Dec 2008 15:49:43 +0100
changeset 22569 f12fc0bf92f05787c8de96eef81f2743998b7779
parent 22568 28f45bf33ba97a819659111bd5eeef7bb2fee162
child 22570 2646df2fb21775aa8dd4ec79f7373c7f1da4a7a3
push idunknown
push userunknown
push dateunknown
reviewersbenjamin
bugs464995
milestone1.9.2a1pre
Bug 464995 - avoid reads of size 1 in jemalloc; r=benjamin
memory/jemalloc/jemalloc.c
--- a/memory/jemalloc/jemalloc.c
+++ b/memory/jemalloc/jemalloc.c
@@ -169,17 +169,17 @@
    /*
     * MALLOC_PAGEFILE causes all mmap()ed memory to be backed by temporary
     * files, so that if a chunk is mapped, it is guaranteed to be swappable.
     * This avoids asynchronous OOM failures that are due to VM over-commit.
     *
     * XXX OS X over-commits, so we should probably use mmap() instead of
     * vm_allocate(), so that MALLOC_PAGEFILE works.
     */
-//#  define MALLOC_PAGEFILE
+#define MALLOC_PAGEFILE
 #endif
 
 #ifdef MALLOC_PAGEFILE
 /* Write size when initializing a page file. */
 #  define MALLOC_PAGEFILE_WRITE_SIZE 512
 #endif
 
 #ifdef MOZ_MEMORY_LINUX