Closed
Bug 1334845
Opened 8 years ago
Closed 8 years ago
Create only one JSContext per helper thread
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
Details
Attachments
(1 file)
|
6.22 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
After bug 1325050, helper threads create separate JSContexts on the stack for each task they execute. It would be cleaner and have less overhead to use the same context throughout a helper thread's existence. This requires mutating the context's runtime, since different tasks may be associated with different runtimes.
Attachment #8831482 -
Flags: review?(jdemooij)
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → bhackett1024
Comment 1•8 years ago
|
||
Comment on attachment 8831482 [details] [diff] [review]
patch
Review of attachment 8831482 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/vm/HelperThreads.cpp
@@ +842,5 @@
> }
>
> +struct MOZ_RAII AutoSetContextRuntime
> +{
> + AutoSetContextRuntime(JSRuntime* rt) {
explicit
Attachment #8831482 -
Flags: review?(jdemooij) → review+
Pushed by bhackett@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e2b893be9f4c
Create only one JSContext per helper thread, r=jandem.
Comment 3•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•