Dactyloidae/memory/mozjemalloc
athenian200 c9ca3dbaca Issue #1571 - Remove JEMALLOC_USES_MAP_ALIGN and fix 48-bit addressing on SunOS AMD64.
The JEMALLOC_USES_MAP_ALIGN code has turned out to be worse than useless, and in fact it breaks 64-bit SunOS. It's very old and turned out not to be needed anymore because the way the memory allocator works has changed since it was implemented. It prevented a fix I tried for 48-bit addressing from working properly. However, without either this code or the 48-bit addressing fix, the 64-bit version won't even start, which is why I thought the code was still needed.

https://bugzilla.mozilla.org/show_bug.cgi?id=457189

https://hg.mozilla.org/mozilla-central/rev/a26c500b98ab

The 48-bit addressing fix is based on code found here:

https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/web/firefox/patches/patch-js_src_gc_Memory.cpp.patch

I already applied these changes to js/src/gc/Memory.cpp, but as I was looking through jemalloc.c I saw that there were very similar ifdefs for Linux on SPARC as the ones I'd had to enaable in Memory.cpp, but for whatever reason the patches I found didn't touch them. So I tried doing for jemalloc.c what was already done for Memory.cpp, and it worked (but only after I removed the map align code).
2020-06-06 07:20:32 +08:00
..
jemalloc.c Issue #1571 - Remove JEMALLOC_USES_MAP_ALIGN and fix 48-bit addressing on SunOS AMD64. 2020-06-06 07:20:32 +08:00
jemalloc_types.h Issue #1307 - Part 5: Remove allocation tracing. 2019-12-06 07:30:43 +08:00
linkedlist.h Update credits in BSD-licensed files. 2019-02-15 23:52:15 +08:00
Makefile.in Remove jemalloc 4 leftover conditional. 2019-02-15 23:52:14 +08:00
moz.build Issue #187: Remove solaris 1st party code OS checks. 2019-04-04 20:26:29 +08:00
osx_zone_types.h Update credits in BSD-licensed files. 2019-02-15 23:52:15 +08:00
ql.h Update credits in BSD-licensed files. 2019-02-15 23:52:15 +08:00
qr.h Update credits in BSD-licensed files. 2019-02-15 23:52:15 +08:00
rb.h Issue #1307 - Part 4: Stop using variable-length arrays. 2019-12-06 07:30:41 +08:00