Closed
Bug 858586
Opened 12 years ago
Closed 12 years ago
IonMonkey: Assertion failure: cache->useCount() == 0, at ion/IonBuilder.cpp:3583
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: decoder, Unassigned)
Details
(Keywords: assertion, testcase, Whiteboard: [jsbugmon:update])
Attachments
(2 files)
|
461 bytes,
text/plain
|
Details | |
|
1.01 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
The following testcase asserts on mozilla-central revision 55f9e3e3dae7 (run with --ion-eager):
function A(a) { this.a = a; }
A.prototype.foo = function (x) {};
function B(b) { this.b = b; }
B.prototype.foo = function (x) {};
function C(c) {}
function makeArray(n) {
var classes = [A, B, C];
var arr = [];
for (var i = 0; i < n; i++) {
arr.push(new classes[i % 3](i % 3));
}
return arr;
}
function runner(arr, resultArray, len) {
for (var i = 0; i < len; i++) {
var obj = arr[i];
resultArray[0] += obj.foo(i);
}
}
var resultArray = [0];
var arr = makeArray(30000);
C.prototype.foo = Uint8ClampedArray;
runner(arr, resultArray, 30000);
| Reporter | ||
Comment 1•12 years ago
|
||
| Reporter | ||
Updated•12 years ago
|
Whiteboard: [jsbugmon:update,bisect]
| Reporter | ||
Updated•12 years ago
|
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
| Reporter | ||
Comment 2•12 years ago
|
||
JSBugMon: Bisection requested, result:
autoBisect shows this is probably related to the following changeset:
The first bad revision is:
changeset: 126654:a92c968b29ae
user: Sean Stangl
date: Tue Feb 19 14:06:40 2013 -0800
summary: Bug 837312: IonMonkey: Inline a strict subset of known targets, r=sstangl,djvj
This iteration took 11.002 seconds to run.
| Reporter | ||
Comment 3•12 years ago
|
||
Needinfo from Sean, based on comment 2 :)
Flags: needinfo?(sstangl)
Comment 4•12 years ago
|
||
replaceOperand() was incorrectly used in place of discardOperand().
Attachment #758898 -
Flags: review?(hv1989)
Flags: needinfo?(sstangl)
Comment 5•12 years ago
|
||
Comment on attachment 758898 [details] [diff] [review]
fix
Review of attachment 758898 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch. Can you include testcase.
Attachment #758898 -
Flags: review?(hv1989) → review+
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Flags: in-testsuite+
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•