Closed
Bug 939893
Opened 13 years ago
Closed 12 years ago
"Assertion failure: !minimalInterval(interval)" in backtracking allocator
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: jruderman, Assigned: sunfish)
References
Details
(Keywords: assertion, testcase)
Attachments
(1 file)
|
1.25 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
function f() {
g();
}
function g() {
h(undefined >>> 0, +undefined);
}
function h(x) {
Math.max(x ? ((x / x) | 0) : 0);
}
for (var a = 0; a < 2; ++a) {
f();
}
With --ion-eager --ion-regalloc=backtracking:
Assertion failure: !minimalInterval(interval), at js/src/jit/BacktrackingAllocator.cpp:517
The first bad revision is:
changeset: http://hg.mozilla.org/mozilla-central/rev/dc4887f61d2e
user: Brian Hackett
date: Fri Dec 14 11:57:30 2012 -0700
summary: Bug 814966 - Add backtracking register allocator, r=jandem.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → sunfish
| Assignee | ||
Updated•13 years ago
|
| Assignee | ||
Comment 1•12 years ago
|
||
This uses the existing DivSelf trick that was added for bug 900437 to lowerUDiv, which has the same need.
Attachment #8335507 -
Flags: review?(bhackett1024)
Comment 2•12 years ago
|
||
Comment on attachment 8335507 [details] [diff] [review]
regalloc-udiv-self.patch
Review of attachment 8335507 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jit/shared/Lowering-x86-shared.cpp
@@ +208,5 @@
>
> bool
> LIRGeneratorX86Shared::lowerUDiv(MInstruction *div)
> {
> + // Optimize x/x. The comments in LowerDivI apply here as well.
s/Lower/lower/
Attachment #8335507 -
Flags: review?(bhackett1024) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Brian Hackett (:bhackett) from comment #2)
> Comment on attachment 8335507 [details] [diff] [review]
> regalloc-udiv-self.patch
>
> Review of attachment 8335507 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: js/src/jit/shared/Lowering-x86-shared.cpp
> @@ +208,5 @@
> >
> > bool
> > LIRGeneratorX86Shared::lowerUDiv(MInstruction *div)
> > {
> > + // Optimize x/x. The comments in LowerDivI apply here as well.
>
> s/Lower/lower/
Done.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2a5427c3a4ba
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 5•12 years ago
|
||
I'm not getting the assertion with the 11/18 Fx28 JS shell, but I do get:
js(46085,0xac0eaa28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Bus error: 10
This doesn't reproduce with the Fx28 beta JS shell.
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•