Closed
Bug 1009335
Opened 12 years ago
Closed 12 years ago
PJS: Propagate errors from ParallelSafetyAnalysis when compiling OMT
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: shu, Assigned: shu)
Details
Attachments
(1 file, 1 obsolete file)
|
7.43 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
When compiling OMT, errors from ParallelSafetyAnalysis get swallowed, so we end up trying to compile failed scripts over and over.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8421446 -
Flags: review?(bhackett1024)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → shu
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
Comment on attachment 8421446 [details] [diff] [review]
Propagate errors from ParallelSafetyAnalysis when compiling off main thread.
Review of attachment 8421446 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, but I'd like to see a new patch as the comments below will require a fair amount of this to be restructured.
::: js/src/jit/Ion.cpp
@@ +1360,5 @@
> if (graph.entryBlock()->info().executionMode() == ParallelExecution) {
> AutoTraceLog log(logger, TraceLogger::ParallelSafetyAnalysis);
> + // Compilation of PJS kernels only happens with IonBuilders.
> + MOZ_ASSERT(!mir->compilingAsmJS());
> + ParallelSafetyAnalysis analysis(*reinterpret_cast<IonBuilder *>(mir), graph);
Hmm, can you move abortReason_ from IonBuilder to MIRGenerator to avoid this cast?
::: js/src/jit/ParallelSafetyAnalysis.cpp
@@ +387,5 @@
> +
> + // Set the abort reason on the top IonBuilder disable, so
> + // that we may propagate the error correctly in case we
> + // are being compiled off-thread.
> + return builder_.topIonBuilder().disable();
The MIR generator passed in will be the top IonBuilder (the builders for inlined frames only ever exist on the stack, anyhow), so there's no need to walk the parents here.
Attachment #8421446 -
Flags: review?(bhackett1024)
| Assignee | ||
Comment 3•12 years ago
|
||
Applied comments.
Attachment #8422107 -
Flags: review?(bhackett1024)
| Assignee | ||
Updated•12 years ago
|
Attachment #8421446 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #8422107 -
Flags: review?(bhackett1024) → review+
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•