forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1809861 - Part 1: Simplify and clean up off-main thread script co…
…mpilation r=smaug The main change in this patch is to prevent access to main-thread objects while off-thread. This is done by using nsMainThreadPtrHandle to wrap main thread pointers in the runnable. This prevents access to their targets when off thread and ensure they are only released on the main thread. This means that mRunnable is now only accessed on the main thread and so it doesn't need to be atomic and can be a normal RefPtr. We also don't need to leak a reference to it in AttemptOffThreadScriptCompile. This also requires that timing data is moved to the runnable. Cancellation should always have happened by unlink or destruction of ScriptLoadContext so handling for that is removed. Differential Revision: https://phabricator.services.mozilla.com/D166667
- Loading branch information
Showing
4 changed files
with
151 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.