Re: Bug#824449: firefox: FTBFS on sparc64 due to wrong platform definitions
On 05/22/2016 11:49 AM, John Paul Adrian Glaubitz wrote:
> I have been playing a bit more and tried a dirty hack to convince mmap to not
> ignore the hint, I just substracted random(), e.g.:
>
> ret = mmap(addr-random(), size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
>
> in memory/mozjemalloc/jemalloc.c in pages_map().
And, of course, for the mmap() calls in js/src/gc/Memory.cpp and js/src/jsapi-tests/
testGCAllocator.cpp, e.g. the calls for which NetBSD/sparc64 is tuned to use a hint
for mmap() [1].
Adrian
> [1] https://hg.mozilla.org/mozilla-central/rev/9ea1e520692e
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: