mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00

Overwrite the OSX default zone allocator, taking into account the malloc_zone_t version (supported versions are 3, 6, and 8) for Leopard, Snow Leopard and Lion. jemalloc can be dynamically disabled for unknown malloc_zone_t versions, for OSX 10.8 and beyond. The changeset does not enable jemalloc, to allow for easy disabling if there's a problem. It will be enabled in the next changeset. This should be a 15-20% improvement in memory usage.