jemalloc to replace default allocator
jemalloc to replace default allocator
- Subject: jemalloc to replace default allocator
- From: Joel Reymont <email@hidden>
- Date: Thu, 6 May 2010 22:51:47 +0100
I would like to use jemalloc to replace the system memory allocator in Firefox.
My understanding is that it needs to hook into the zone system and there's existing code in Firefox that sort of does it [1]. According to Mozilla, "it is difficult to get our code to load fast enough to replace the default zone before other allocations happen" so a linker trick is used [2] to get it to happen early.
What is the proper way to make it work (fast!) in 10.5 and 10.6?
I'm not familiar with the zone system but I'm a quick learner, in case someone has pointers for me.
Thanks in advance, Joel
[1] http://mxr.mozilla.org/mozilla-central/source/memory/jemalloc/jemalloc.c#6380
[2] http://mxr.mozilla.org/mozilla-central/source/memory/jemalloc/Makefile.in#141
---
http://twitter.com/wagerlabs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden