Re: NSPR + jemalloc build
Wan-Teh Chang <[email protected]> Tue, 20 Sep 2011 12:14:19 -0700
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <CALTJjxFOTJ09NhJmsW9PQAvkK0p9Z=FuoozoZkV+0XqUqS7yzg@mail.gmail.com> |
On Mon, Sep 19, 2011 at 11:22 PM, Zoltan Bencik <[email protected]> wrote: > Hello, > > I was wondering if it's currently possible to build NSPR with > jemalloc? As far as I found, this bug https://bugzilla.mozilla.org/show_bug.cgi?id=427107 > is still open. I just wanted to make sure if it's really available or > not. > The goal is to build NSS and make NSPR to use jemalloc like it's done > in Seamonkey or Firefox. The use of jemalloc should be mostly transparent to NSPR and NSS. jemalloc should replace the malloc/calloc/realloc/free functions of the Standard C Library, so I think this at most require changes to the linker flags. On some platforms you may only need to change the linker flags when you link the application (i.e., you can link the NSPR and NSS shared libraries as usual). Wan-Teh