Closed
Bug 1786819
Opened 3 years ago
Closed 3 years ago
Handle ErrorContext in oomTest
Categories
(Core :: JavaScript Engine, task, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: arai, Assigned: bthrall)
References
Details
oomTest calls ReportOutOfMemory internally, and that path should be covered with new frontend-specific allocator.
class JS_PUBLIC_API TempAllocPolicy : public AllocPolicyBase {
...
bool checkSimulatedOOM() const {
if (js::oom::ShouldFailWithOOM()) {
ReportOutOfMemory(cx_);
| Reporter | ||
Comment 1•3 years ago
|
||
Switching everything to SystemAllocPolicy or something might just solve the issue.
| Assignee | ||
Updated•3 years ago
|
Assignee: nobody → bthrall
| Assignee | ||
Comment 3•3 years ago
|
||
oomTest's code path with FrontendContext is covered since bug 1782573:
bool checkSimulatedOOM() const {
if (js::oom::ShouldFailWithOOM()) {
if (hasJSContext()) {
ReportOutOfMemory(cx());
} else {
ReportOutOfMemory(fc());
}
| Assignee | ||
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•