Bug 132360

Summary: Don't hold on to BindingNodes forever
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: New BugsAssignee: Oliver Hunt <oliver>
Status: REOPENED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 132431    
Bug Blocks:    
Attachments:
Description Flags
Patch ggaren: review+

Oliver Hunt
Reported 2014-04-29 15:11:43 PDT
Don't hold on to BindingNodes forever
Attachments
Patch (24.08 KB, patch)
2014-04-29 15:15 PDT, Oliver Hunt
ggaren: review+
Oliver Hunt
Comment 1 2014-04-29 15:15:37 PDT
Geoffrey Garen
Comment 2 2014-04-29 15:20:44 PDT
Comment on attachment 230429 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230429&action=review r=me > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:196 > + // We make an isolated copy of the parameter string as we don't want to keep the > + // full source string alive. > + String parameterString = source.provider()->getRange(node->parametersStartOffset(), node->parametersEndOffset()).isolatedCopy(); An executable always keeps its full source provider alive, so I don't think isolatedCopy() is an improvement here.
Oliver Hunt
Comment 3 2014-04-29 15:21:24 PDT
Comment on attachment 230429 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230429&action=review >> Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:196 >> + String parameterString = source.provider()->getRange(node->parametersStartOffset(), node->parametersEndOffset()).isolatedCopy(); > > An executable always keeps its full source provider alive, so I don't think isolatedCopy() is an improvement here. unlinked executables don't :D
Oliver Hunt
Comment 4 2014-04-29 15:23:47 PDT
WebKit Commit Bot
Comment 5 2014-05-01 10:24:00 PDT
Re-opened since this is blocked by bug 132431
Note You need to log in before you can comment on or make changes to this bug.