mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
d3f17931b7
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 |
||
---|---|---|
.. | ||
build | ||
fallible | ||
gtest | ||
mozalloc | ||
mozjemalloc | ||
replace | ||
volatile | ||
moz.build |