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 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.
-- 
Xi Ruoyao <xry...@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to