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)

task

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 to XDRBufferBase and all subclasses constructors
  • Add ErrorContext* ec parameter to js::XDRState and subclasses constructors
  • Let each consumer provide ErrorContext* parameter to each subclass of XDRState (e.g. js::XDRStencilDecoder)
  • Use xdr->ec() instead of xdr->cx() when calling ReportOutOfMemory in StencilXdr.cpp
Assignee: nobody → mohamedatef1698
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

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.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Blocks: 1788709
Blocks: 1787730
Pushed by bthrall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7284cca9b538 Use ErrorContext-variant of `ReportOutOfMemory` in Stencil XDR. r=arai,bthrall
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: