Closed Bug 1853881 Opened 2 years ago Closed 2 years ago

Assert the margin for the stack quota is sufficient for the gap between 2 stack quota verifications

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(2 files)

Bug 1853480 restores the stack quota for off-thread compilation, with a margin subtracted from the TaskController's stack size, the reason is that the stack quota is not checked for each function call in parser/compiler, but only in some functions which the execution frequently reaches.
We should assert that the margin is sufficient for the gap between those 2 stack quota checks.

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/d250b2f13783 Part 1: Add JS::ThreadStackQuotaForSize and use it everywhere. r=nbp https://hg.mozilla.org/integration/autoland/rev/e9c3d57463a0 Part 2: Assert the stack margin is sufficient. r=nbp
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: