mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
Bug 937550 - Report OOM to stderr in JS_MORE_DETERMINISTIC builds. r=jorendorff
This commit is contained in:
parent
1aa8ec2f9a
commit
b51b227cdd
@ -352,6 +352,15 @@ PopulateReportBlame(JSContext *cx, JSErrorReport *report)
|
||||
void
|
||||
js_ReportOutOfMemory(ThreadSafeContext *cxArg)
|
||||
{
|
||||
#ifdef JS_MORE_DETERMINISTIC
|
||||
/*
|
||||
* OOMs are non-deterministic, especially across different execution modes
|
||||
* (e.g. interpreter vs JIT). In more-deterministic builds, print to stderr
|
||||
* so that the fuzzers can detect this.
|
||||
*/
|
||||
fprintf(stderr, "js_ReportOutOfMemory called\n");
|
||||
#endif
|
||||
|
||||
if (cxArg->isForkJoinSlice()) {
|
||||
cxArg->asForkJoinSlice()->setPendingAbortFatal(ParallelBailoutOutOfMemory);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user