Bug 142460

Summary: BuiltinExecutables keeps finalized Weaks around, pinning WeakBlocks.
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, ggaren, kling
Priority: P2 Keywords: Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andreas Kling 2015-03-08 13:38:19 PDT
I'm seeing a bunch of WeakBlocks that are only kept alive by the UnlinkedFunctionExecutable Weak pointers in VM::builtinExecutables().
Comment 1 Andreas Kling 2015-03-08 13:42:20 PDT
Created attachment 248201 [details]
Patch
Comment 2 Geoffrey Garen 2015-03-08 15:46:31 PDT
Comment on attachment 248201 [details]
Patch

r=me

I'll give you a dollar if you write the patch that says that a WeakBlock with only nulls should not pin down a MarkedBlock.
Comment 3 Andreas Kling 2015-03-08 16:40:48 PDT
(In reply to comment #2)
> Comment on attachment 248201 [details]
> Patch
> 
> r=me
> 
> I'll give you a dollar if you write the patch that says that a WeakBlock
> with only nulls should not pin down a MarkedBlock.

You're on!
Comment 4 WebKit Commit Bot 2015-03-08 16:47:52 PDT
Comment on attachment 248201 [details]
Patch

Clearing flags on attachment: 248201

Committed r181248: <http://trac.webkit.org/changeset/181248>
Comment 5 WebKit Commit Bot 2015-03-08 16:47:56 PDT
All reviewed patches have been landed.  Closing bug.