gecko-dev/memory
Mike Hommey d3f17931b7 Bug 1365460 - Remove JEMALLOC_USES_MAP_ALIGN. r=njn
It's a Solaris-only optimization that was used as a workaround for some
infinite loop in pages_map (bug 457189). In the meanwhile, the way
pages_map works has changed in such a way the infinite loop can't happen
anymore.

Specifically, the original problem was that pages_map would try to
allocate something larger than a chunk, then deallocate it, and
reallocate at a hinted aligned address near the address of the now
deallocated mapping, hopefully getting an aligned chunk. But Solaris
would ignore the hint and the chunk would never be aligned, causing the
infinite loop.

What the code does now it over-allocate, find an aligned chunk in there,
and deallocate what ends up not being needed. Which leaves no room for
the original infinite loop.

We thus remove the workaround and put Solaris in par with other Unix
platforms.

--HG--
extra : rebase_source : 9ce4509d9c5ac6123cedabf87c5738672af35d1b
2017-05-18 11:30:52 +09:00
..
build Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
fallible Bug 1290645 - Remove VS2013 workarounds in memory/. r=glandium 2016-07-28 11:46:30 -07:00
gtest Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn 2016-11-09 10:24:22 -08:00
mozalloc Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
mozjemalloc Bug 1365460 - Remove JEMALLOC_USES_MAP_ALIGN. r=njn 2017-05-18 11:30:52 +09:00
replace Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
volatile Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz.build Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00