Open Bug 1422280 Opened 7 years ago Updated 9 months ago

PersistentRoot<Maybe<T>> not cleared on shutdown

Categories

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

enhancement

Tracking

()

People

(Reporter: jonco, Unassigned)

References

(Blocks 1 open bug)

Details

JSRuntime::finishPersistentRoots() clears the contents of persistent roots on shutdown. But it doesn't clear PersistentRoot<Maybe<T>> roots. There's no equivalent of the line in JSRuntime::tracePersistentRoots() that handles ConcreteTraceable roots.
This is problematic because we don't know the type of the rooted thing at shutdown. We only have a trace function for it. It might be possible to use ClearEdgesTracer here, but we'd have to fix bug 1422513 first.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.