Closed
Bug 938950
Opened 12 years ago
Closed 12 years ago
Don't provide full access to compartment/zone/runtime when compiling off thread
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: bhackett1024, Unassigned)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
76.90 KB,
patch
|
jandem
:
review+
|
Details | Diff | Splinter Review |
When compiling off thread bare pointers to the compartment, zone and runtime can be obtained which could allow for non-threadsafe accesses to occur. These accesses can happen through either the compartment member of MIRGenerator/IonBuilder, or through TLS with GetIonContext. It would be nicer if these only provided interfaces for accessing the compartment/zone/runtime in threadsafe ways, mostly for obtaining the address of various internal bits of the system. The attached patch adds Compile{Compartment,Zone,Runtime} classes for this purpose.
Attachment #832685 -
Flags: review?(jdemooij)
Comment 1•12 years ago
|
||
Comment on attachment 832685 [details] [diff] [review]
patch
Review of attachment 832685 [details] [diff] [review]:
-----------------------------------------------------------------
Awesome!
::: js/src/jit/CompileWrappers.h
@@ +26,5 @@
> +{
> + JSRuntime *runtime();
> +
> +public:
> +
Nit: indentation and extra blank line.
Attachment #832685 -
Flags: review?(jdemooij) → review+
Reporter | ||
Comment 2•12 years ago
|
||
And backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/51b8979e2dd6 for breaking the build everywhere: https://tbpl.mozilla.org/php/getParsedLog.php?id=30715762&tree=Mozilla-Inbound
Reporter | ||
Comment 4•12 years ago
|
||
Ugh, using hg patch didn't actually hg add the new files in the patch.
https://hg.mozilla.org/integration/mozilla-inbound/rev/c848ede03acc
Reporter | ||
Comment 6•12 years ago
|
||
I guess our build system is now so stupid that adding new source files requires a clobber.
https://hg.mozilla.org/integration/mozilla-inbound/rev/4df4f9fff8c5
Comment 7•12 years ago
|
||
I filed bug 940404 for that clobber-needing.
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4df4f9fff8c5
https://hg.mozilla.org/mozilla-central/rev/ddf925dab861
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•