mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1231925 - Correctly recover if allocating tracked optimizations go OOM. (r=jonco)
This commit is contained in:
parent
94e9d75b26
commit
f0b829c1ca
7
js/src/jit-test/tests/profiler/bug1231925.js
Normal file
7
js/src/jit-test/tests/profiler/bug1231925.js
Normal file
@ -0,0 +1,7 @@
|
||||
if (!('oomTest' in this))
|
||||
quit();
|
||||
|
||||
enableSPSProfiling();
|
||||
oomTest(function() {
|
||||
eval("(function() {})()")
|
||||
});
|
@ -8217,6 +8217,8 @@ CodeGenerator::link(JSContext* cx, CompilerConstraintList* constraints)
|
||||
(const IonTrackedOptimizationsAttemptsTable*) optsAttemptsTableAddr;
|
||||
entry.initTrackedOptimizations(optsRegionTable, optsTypesTable, optsAttemptsTable,
|
||||
allTypes);
|
||||
} else {
|
||||
cx->recoverFromOutOfMemory();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user