On Tue, Sep 22, 2020 at 01:48:27AM +0800, Xi Ruoyao via blfs-dev wrote: > On 2020-09-21 17:59 +0100, Ken Moffat via blfs-dev wrote: > > On Mon, Sep 21, 2020 at 10:07:18AM -0500, Douglas R. Reno via blfs-dev > > wrote: > > > > > > On 9/21/20 9:36 AM, Ken Moffat via blfs-dev wrote: > > > > I'm now looking at js78 because firefox-78.3.0 is out. For the > > > > moment I'm still using js68, but I can at least compare the js build > > > > against 78.2.0. > > > > > > > > Looking at that, we have '--disable-jemalloc' with the explanation: > > > > This switch disables the internal memory allocator used in JS78. > > > > jemalloc causes a conflict with glibc. > > > > > > [...] > > > > I've now looked at fedora, > > > > https://src.fedoraproject.org/rpms/mozjs78/blob/master/f/mozjs78.spec > > > > > > > > It seems to me that they are not disabling jemalloc. > > They are: > > > https://src.fedoraproject.org/rpms/mozjs78/blob/master/f/mozjs78.spec#_158 >
I searched in firefox for jemalloc on my that specfile on my other machine and didn't get any matches. Probably I typo'd. Thanks for the link, and the extra wording is a lot clearer. > > > > I think dropping --disable-jemalloc is a good idea. I think that's a > > > holdover from when we first added it, I think js60 or js52? It was around > > > the time that Gjs started requiring later versions of the Spidermonkey JS > > > engine. > > > > > > - Doug > > > > > > > Thanks. I've remeasured without it (faster, but might be normal rust > > variation), will do that. > > From > https://github.com/mozilla-spidermonkey/spidermonkey-embedding-examples/blob/esr78/docs/Building%20SpiderMonkey.md > : > > > Disabling jemalloc > > > > One important configuration when getting started is the --disable-jemalloc > > flag. This will cause SpiderMonkey to use the system allocator functions > > instead of a custom build of jemalloc. The custom configuration, which is > > the > > default, is intended for a browser environment and requires linking the > > final > > application with a matching version of a library called mozglue. If one > > accidentally builds SpiderMonkey for their embedding without including the > > -- > > disable-jemalloc flag, they usually quickly encounter strange crashes as > > items > > allocated in jemalloc allocator are freed on system allocator. > > So don't do that. You caught it just in time ;-) ĸen -- A really good hydrophobe has to be trained on dehydrated water from birth. I mean, that costs a fortune in magic alone. But they make great weather magicians. Rain clouds just give up and go away. -- The Colour of Magic -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
