• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
jemalloc to replace default allocator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: jemalloc to replace default allocator
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: need help on porting from 32bit to 64bit.
  • Next by Date: Re: jemalloc to replace default allocator
  • Previous by thread: Re: need help on porting from 32bit to 64bit.
  • Next by thread: Re: jemalloc to replace default allocator
  • Index(es):
    • Date
    • Thread