Skip to content

Commit

Permalink
Bug 1134123 - Disable (infinite) chunk recycling in jemalloc3. r=njn
Browse files Browse the repository at this point in the history
Jemalloc 3 has, by default, a form of chunk recycling enabled, where it
actually doesn't unmap any chunk it ever allocated. Considering Gecko has
other uses of mmap, it can lead to premature address space exhaustion.

Until we have actual (limited) chunk recycling in jemalloc3 from bug
1107677, just disable this feature.
  • Loading branch information
glandium committed Feb 24, 2015
1 parent 5a04044 commit 1f351bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.in
Expand Up @@ -9130,6 +9130,9 @@ if test -z "$MOZ_NATIVE_JEMALLOC" -a "$MOZ_MEMORY" && test -n "$MOZ_JEMALLOC3" -
# Force disable DSS support in jemalloc.
ac_configure_args="$ac_configure_args ac_cv_func_sbrk=false"

# Make Linux builds munmap freed chunks instead of recycling them.
ac_configure_args="$ac_configure_args --enable-munmap"

if ! test -e memory/jemalloc; then
mkdir -p memory/jemalloc
fi
Expand Down

0 comments on commit 1f351bd

Please sign in to comment.