mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1216607 - Fix assertion failure ARM assembler on OOM r=jandem
This commit is contained in:
parent
1a5fb5ffcd
commit
a17d33df4f
16
js/src/jit-test/tests/gc/bug-1216607.js
Normal file
16
js/src/jit-test/tests/gc/bug-1216607.js
Normal file
@ -0,0 +1,16 @@
|
||||
enableSPSProfilingWithSlowAssertions();
|
||||
try {
|
||||
(function() {
|
||||
while (n--) {
|
||||
}
|
||||
})();
|
||||
} catch(exc1) {}
|
||||
function arrayProtoOutOfRange() {
|
||||
function f(obj) {}
|
||||
function test() {
|
||||
for (var i = 0; i < 1000; i++)
|
||||
var r = f(i % 2 ? a : b);
|
||||
}
|
||||
test();
|
||||
}
|
||||
oomTest(arrayProtoOutOfRange);
|
@ -168,7 +168,7 @@ class CompactBufferWriter
|
||||
}
|
||||
void writeNativeEndianUint32_t(uint32_t value) {
|
||||
// Must be at 4-byte boundary
|
||||
MOZ_ASSERT(length() % sizeof(uint32_t) == 0);
|
||||
MOZ_ASSERT_IF(!oom(), length() % sizeof(uint32_t) == 0);
|
||||
writeFixedUint32_t(0);
|
||||
if (oom())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user