1. No. SpiderMonkey creates several threads for its own internal use,
mainly just to take advantage of multiple CPUs to go faster in certain
situations. When the threads are working, they're speeding something up (if
you have >1 core); when they're idle, they aren't hurting anything.

2. I'm not sure. Can you pastebin an example program showing the problem
and/or a backtrace, and (perhaps most important) tell us what version of
SpiderMonkey you're using? (That exact assertion doesn't seem to be present
in the codebase anymore, though I could be missing something.)

-j

On Fri, Jan 9, 2015 at 4:53 PM, Jason Hill <jamesjasonh...@gmail.com> wrote:

> Recent SpiderMonkey initiates a lots of 'idle' threads (Helper Threads?)
>
> 1 - Is there a way to use them / or disable them ? Disabling them is a
> good idea?
>
>
> 2 - Whenever I create another thread and call JS_NewRuntime, it fails at
> "JS_ASSERT(!isLocked());" What could be wrong?
>
>
> Thanks!
> _______________________________________________
> dev-tech-js-engine-internals mailing list
> dev-tech-js-engine-internals@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to