Closed
Bug 1786117
Opened 3 years ago
Closed 3 years ago
Use ErrorContext-variant of `ReportOutOfMemory` in Stencil XDR
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
106 Branch
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: arai, Assigned: mohamedatef1698)
References
Details
Attachments
(1 file)
bug 1782569 adds ErrorContext
-variant of ReportOutOfMemory
.
Stencil XDR is also used by off-thread API, to decode Stencil XDR off-thread.
The code path also needs to use ErrorContext
.
Things to do here:
- Add
ErrorContext* ec
field,ErrorContext* ec()
method to js::XDRBufferBase - Add
ErrorContext* ec
parameter toXDRBufferBase
and all subclasses constructors - Add
ErrorContext* ec
parameter to js::XDRState and subclasses constructors - Let each consumer provide
ErrorContext*
parameter to each subclass ofXDRState
(e.g. js::XDRStencilDecoder) - Use
xdr->ec()
instead ofxdr->cx()
when callingReportOutOfMemory
in StencilXdr.cpp
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → mohamedatef1698
Status: NEW → ASSIGNED
Updated•3 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Comment 3•3 years ago
|
||
It is fine with me if we proceed with this or with my changes on bug 1783951. I marked this as duplicate without thinking about which one we should use.
Reporter | ||
Updated•3 years ago
|
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Pushed by bthrall@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7284cca9b538
Use ErrorContext-variant of `ReportOutOfMemory` in Stencil XDR. r=arai,bthrall
Comment 5•3 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 3 years ago → 3 years ago
status-firefox106:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•