mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1234410 - Fix JIT spew assertion when we've hit OOM r=lth
This commit is contained in:
parent
314276ea80
commit
595fb493d7
10
js/src/jit-test/tests/gc/bug-1234410.js
Normal file
10
js/src/jit-test/tests/gc/bug-1234410.js
Normal file
@ -0,0 +1,10 @@
|
||||
if (!('oomTest' in this))
|
||||
quit();
|
||||
|
||||
enableSPSProfiling();
|
||||
oomTest(() => {
|
||||
try {
|
||||
for (var quit of oomTest.gcparam("//").ArrayBuffer(1)) {}
|
||||
} catch (e) {}
|
||||
});
|
||||
|
@ -1276,6 +1276,9 @@ struct JitcodeMapBufferWriteSpewer
|
||||
{}
|
||||
|
||||
void spewAndAdvance(const char* name) {
|
||||
if (writer->oom())
|
||||
return;
|
||||
|
||||
uint32_t curPos = writer->length();
|
||||
const uint8_t* start = writer->buffer() + startPos;
|
||||
const uint8_t* end = writer->buffer() + curPos;
|
||||
|
Loading…
Reference in New Issue
Block a user