Bug 142090

Summary: Use NeverDestroyed for JS wrapper owners.
Product: WebKit Reporter: Andreas Kling <kling>
Component: WebCore JavaScriptAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue
Priority: P2 Keywords: Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andreas Kling 2015-02-27 10:48:25 PST
We should use WTF::NeverDestroyed for all the JSFooOwner classes that we generate. That will prevent them from pinning down large malloc pages long after we've navigated away from the site that instantiated them.
Comment 1 Andreas Kling 2015-02-27 10:50:10 PST
Created attachment 247522 [details]
Patch
Comment 2 Chris Dumez 2015-02-27 10:52:05 PST
Comment on attachment 247522 [details]
Patch

r=me.
Comment 3 WebKit Commit Bot 2015-02-27 11:52:30 PST
Comment on attachment 247522 [details]
Patch

Clearing flags on attachment: 247522

Committed r180772: <http://trac.webkit.org/changeset/180772>
Comment 4 WebKit Commit Bot 2015-02-27 11:52:35 PST
All reviewed patches have been landed.  Closing bug.