Open Bug 1654599 Opened 5 years ago Updated 5 months ago

Consider making ScriptSourceObject background finalizable

Categories

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

enhancement

Tracking

()

People

(Reporter: tcampbell, Unassigned)

References

(Blocks 3 open bugs)

Details

This finalizer is a non-trivial portion of foreground finalization work in some cases.

eg. http://arewesmoothyet.com/?category=all&durationSpec=128_512&mode=explore&payloadID=cc272d3263f6417891ac38dda1ec3ef7&search=FinalizeArenas&thread=0&transforms=ff-5020

We should investigate making this background finalizable. There is a bit of existing cleverness with the source compression tasks and the incremental-xdr (which will be removed in Bug 1586771), but it may be possible to solve these.

One of the remaining this is an embedding hook which might make this less possible.
https://searchfox.org/mozilla-central/rev/dcd9c2d2bc19d96d487825eb70c2333a4d60994e/dom/script/LoadedScript.cpp#80-88

Severity: -- → N/A
Type: task → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.