Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
BuiltinExecutables keeps finalized Weaks around, pinning WeakBlocks.
<https://webkit.org/b/142460> Reviewed by Geoffrey Garen. Make BuiltinExecutables a WeakHandleOwner so it can clear out its respective Weak members if and when their pointees get garbage collected. This fixes an issue I've seen locally where a WeakBlock is pinned down by a single one of these Weak<BuiltinExecutables>. * builtins/BuiltinExecutables.h: Make BuiltinExecutables inherit from WeakHandleOwner. * builtins/BuiltinExecutables.cpp: (JSC::BuiltinExecutables::finalize): Clear out the relevant member pointer when it's been garbage collected. We use the WeakImpl's "context" field to pass the address of the member. Canonical link: https://commits.webkit.org/160506@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
29 additions
and 2 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
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