jemalloc to replace default allocator
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=meNDX2sz/gLQJ0+g/lusDimubPX2oxMgZJgZojyuYSo=; b=tct5EM35Jn0IJ3M5LB0VcArbOMczfBuHvrGoUV4UkDIjMzwkPGsmCcfv5r1RqZ+G8W TERQ8fqiAASxzBMA48bBY5BJOwSCJ0e+Vj3SQsVvRrXA1yaNsEfBdVdpf9WOjI43WZX0 ds7NzbP+9gWDoQebDLERoQD1iFZVaZMUAt174= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=pClm8D/xnZTKed3tR5n8DNXyCjAY3Ezlm6J09/fY89iWCwizV2myfJkrINSEOWPUIw q1+mUg9s3qAM2lbivcTtgspKWIlLi07122EKJYS+aQWEsTfR3VxLHaioHsNMXdlmL1gW 9gWn0aO4QcT062JdTHMyawebocIZKXPs2BgdE= 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#638... [2] http://mxr.mozilla.org/mozilla-central/source/memory/jemalloc/Makefile.in#14... --- http://twitter.com/wagerlabs _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Joel Reymont