Closed
Bug 1231337
Opened 9 years ago
Closed 9 years ago
Implement about:config pref for SAB+Atomics and code to manipulate the JS engine in response to changes
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: lth, Assigned: lth)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
See bug 1231335. We need a suitable about:config name, it needs to be added to whatever holds those names, and when the value changes we need to call the new JS engine API to change the state of that pref.
(JS engine is not the right category for this bug.)
Assignee | ||
Comment 1•9 years ago
|
||
See ReloadPrefsCallback() in js/xpconnect/src/XPCJSRuntime.cpp, for one thing.
Assignee | ||
Comment 2•9 years ago
|
||
The name shall be "javascript.options.shared-memory".
Assignee | ||
Comment 3•9 years ago
|
||
Or rather "javascript.options.shared_memory", according to the culture.
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
Connect a new about:config flag to the JS engine. See bug 1231335 for the engine functionality.
Attachment #8702493 -
Flags: review?(mrbkap)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•9 years ago
|
||
Enable shared memory functionality in dedicated workers (only).
Attachment #8702494 -
Flags: review?(khuey)
Assignee | ||
Comment 7•9 years ago
|
||
Add a new option "javascript.options.shared_memory".
Attachment #8702495 -
Flags: review?(benjamin)
Updated•9 years ago
|
Attachment #8702493 -
Flags: review?(mrbkap) → review+
Comment on attachment 8702494 [details] [diff] [review]
bug1231337-part2-workers.patch
Review of attachment 8702494 [details] [diff] [review]:
-----------------------------------------------------------------
I assume it's expected that only new globals will be affected by a change in the preference, and not existing ones?
I also assume you actually do want this only for dedicated workers?
Attachment #8702494 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #8)
> Comment on attachment 8702494 [details] [diff] [review]
> bug1231337-part2-workers.patch
>
> Review of attachment 8702494 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> I assume it's expected that only new globals will be affected by a change in
> the preference, and not existing ones?
>
> I also assume you actually do want this only for dedicated workers?
Yes and yes.
Assignee | ||
Updated•9 years ago
|
Attachment #8702495 -
Flags: review?(benjamin) → review?(jmuizelaar)
Comment 10•9 years ago
|
||
Comment on attachment 8702495 [details] [diff] [review]
bug1231337-part3-about_config.patch
Review of attachment 8702495 [details] [diff] [review]:
-----------------------------------------------------------------
The only reason I come up as suggested reviewer for about:config is that I've reviewed a lot of graphics pref changes/additions. However, this seems fine. You should send an email to dev-platform letting people know that this is being turned on in Nightly only.
Attachment #8702495 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 11•9 years ago
|
||
A companion change to the one you reviewed previously, fallout from Waldo's refactoring of the compartment settings.
Attachment #8704644 -
Flags: review?(mrbkap)
Assignee | ||
Comment 12•9 years ago
|
||
Updated•9 years ago
|
Attachment #8704644 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 13•9 years ago
|
||
Assignee | ||
Comment 14•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/fc166d042b6f39f91f613fb59ac51e7f7ba9482d
Bug 1231337 - part 1, hook SAB+Atomics runtime enablement into xpconnect. r=mrbkap
https://hg.mozilla.org/integration/mozilla-inbound/rev/4356bac66a3e5017a38e885028fff7620db84311
Bug 1231337 - part 2, conditionally enable shared memory for dedicated workers. r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/52655e7005b6b224522cdd61c3e47094d0745871
Bug 1231337 - part 3, add javascript.options.shared_memory to about:config. r=jmuizelaar
https://hg.mozilla.org/integration/mozilla-inbound/rev/6346790559d1a5de9bd0632a6b009bd2f691e290
Bug 1231337 - part 4, conditionally enable shared memory for ipc testshell. r=mrbkap
Assignee | ||
Comment 15•9 years ago
|
||
Jukka, with this change it will (eventually) be possible to enable shared memory on Aurora, DevEd, Beta, and Release by flipping javascript.options.shared_memory to true. The feature will still be enabled by default on Nightly.
(Will announce this to dev-platform as soon as I know the patch has stuck.)
Flags: needinfo?(jujjyl)
Comment 16•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fc166d042b6f
https://hg.mozilla.org/mozilla-central/rev/4356bac66a3e
https://hg.mozilla.org/mozilla-central/rev/52655e7005b6
https://hg.mozilla.org/mozilla-central/rev/6346790559d1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•