Closed Bug 1540719 Opened 5 years ago Closed 5 years ago

Symbol allocation doesn't trigger a last ditch GC on failure

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

Currently we don't do a last ditch GC if symbol allocation fails. The code works like this because it was written when you need to take a lock for allocating in the atoms zone, which would also be required for the last ditch GC. That is not the case any more so we can remove this restriction.

This removes the NoGC specifier and ensures GC things are passed in handles rather than raw pointers. The existing comments helpfully pointed out where we need to use DependentAddPtr.

Priority: -- → P3
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/87ae5e3b6962
Perform a last ditch GC if symbol allocation fails as we do for most other GC things r=sfink
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/54dffe309994
Perform a last ditch GC if symbol allocation fails as we do for most other GC things r=sfink

Bustage was unrelated to this patch.

Flags: needinfo?(jcoppeard)

(In reply to Jon Coppeard (:jonco) from comment #5)
In fact, there was more bustage that was related to this patch. Hopefully this sticks now.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Depends on: 1543589
No longer depends on: 1543589
Regressions: 1543589
Regressions: 1543208
Regressed by: 1573458
No longer regressed by: 1573458
Regressions: 1573458
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: