Open
Bug 1215090
Opened 10 years ago
Updated 10 months ago
Try to land test case for bug 1186982
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: lth, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
This never landed successfully due to many OOM bugs, which may since have been fixed, we could try again (though decoder said on IRC that it's often hard to land these, they tend to fail sporadically, very annoying, if it continues to be a problem it can land in jit-test/manual-tests):
# HG changeset patch
# User Lars T Hansen <lhansen@mozilla.com>
# Date 1443652886 -7200
# Node ID 212f49a401b2fe47c6f46c774a214063f2f21246
# Parent 190f5eeec41a8afda21ad2bde82bd739e04b3fd9
Bug 1186982 - propagate OOM failures. r=h4writer
diff --git a/js/src/jit-test/tests/ion/bug1186982.js b/js/src/jit-test/tests/ion/bug1186982.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1186982.js
@@ -0,0 +1,24 @@
+if (!(this.resetOOMFailure && this.oomAtAllocation && this.gczeal && this.uneval))
+ quit(0);
+
+oomTest(((function() {
+ try {
+ gczeal(2)(uneval(this))
+ } catch(e) {}
+})));
+function oomTest(f) {
+ var i = 1;
+ // Outer catch in case the inner catch fails due to OOM.
+ try {
+ do {
+ try {
+ oomAtAllocation(i);
+ f();
+ } catch (e) {}
+ more = resetOOMFailure();
+ i++;
+ if (i > 1560)
+ print(i);
+ } while(more);
+ } catch (e) {}
+}
| Reporter | ||
Updated•8 years ago
|
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Attachment #9385473 -
Attachment is obsolete: true
Updated•10 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•