Closed Bug 1568454 Opened 7 years ago Closed 7 years ago

Invocation kind for a new collection can be set while a collection is running

Categories

(Core :: JavaScript: GC, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 external file)

In GCRuntime::gc() we set GCRuntime::invocationKind before calling collect(), but we could be in the middle of an incremental GC. Instead we should pass the kind parameter down with the reason parameter, and set this in the first slice.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task

This is slightly complicated by the fact that we should only pass an invocation kind for the first slice, so it's passed as Maybe<>.

Depends on D39221

Type: task → defect
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7b97deb4ae68 Set GCRuntime::invocationKind in the first slice of a collection r=sfink
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Regressions: 1574339
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: