RESOLVED FIXED 53061
REGRESSION: Leak in JSParser::Scope::copyCapturedVariablesToVector()
https://bugs.webkit.org/show_bug.cgi?id=53061
Summary REGRESSION: Leak in JSParser::Scope::copyCapturedVariablesToVector()
Simon Fraser (smfr)
Reported 2011-01-24 21:37:47 PST
Running 'leaks' on DumpRenderTree for some CSS tests is showing lots of leaks in: | WebCore::JSMainThreadExecState::evaluate(JSC::ExecState*, JSC::ScopeChain&, JSC::SourceCode const&, JSC::JSValue) | JSC::evaluate(JSC::ExecState*, JSC::ScopeChain&, JSC::SourceCode const&, JSC::JSValue) | JSC::ProgramExecutable::compile(JSC::ExecState*, JSC::ScopeChainNode*) | JSC::ProgramExecutable::compileInternal(JSC::ExecState*, JSC::ScopeChainNode*) | WTF::PassRefPtr<JSC::ProgramNode> JSC::Parser::parse<JSC::ProgramNode>(JSC::JSGlobalObject*, JSC::Debugger*, JSC::ExecState*, JSC::SourceCode const&, JSC::FunctionParameters*, JSC::JSParserStrictness, JSC::JSObject**) | JSC::Parser::parse(JSC::JSGlobalData*, JSC::FunctionParameters*, JSC::JSParserStrictness, JSC::JSParserMode, int*, JSC::UString*) | JSC::jsParse(JSC::JSGlobalData*, JSC::FunctionParameters*, JSC::JSParserStrictness, JSC::JSParserMode, JSC::SourceCode const*) | JSC::JSParser::parseProgram() | JSC::ASTBuilder::SourceElements JSC::JSParser::parseSourceElements<(JSC::JSParser::SourceElementsMode)0, JSC::ASTBuilder>(JSC::ASTBuilder&) | JSC::ASTBuilder::Statement JSC::JSParser::parseStatement<JSC::ASTBuilder>(JSC::ASTBuilder&, JSC::Identifier const*&) | JSC::ASTBuilder::Statement JSC::JSParser::parseFunctionDeclaration<JSC::ASTBuilder>(JSC::ASTBuilder&) | bool JSC::JSParser::parseFunctionInfo<(JSC::JSParser::FunctionRequirements)1, true, JSC::ASTBuilder>(JSC::ASTBuilder&, JSC::Identifier const*&, JSC::ASTBuilder::FormalParameterList&, JSC::ASTBuilder::FunctionBody&, int&, int&, int&) | JSC::JSParser::Scope::saveFunctionInfo(JSC::JSParser::CachedFunctionInfo*) | JSC::JSParser::Scope::copyCapturedVariablesToVector(WTF::HashSet<WTF::RefPtr<WTF::StringImpl>, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::StringImpl> > > const&, WTF::Vector<WTF::RefPtr<WTF::StringImpl>, 0ul>&) | WTF::Vector<WTF::RefPtr<WTF::StringImpl>, 0ul>::shrinkToFit() | WTF::Vector<WTF::RefPtr<WTF::StringImpl>, 0ul>::shrinkCapacity(unsigned long) | WTF::VectorBufferBase<WTF::RefPtr<WTF::StringImpl> >::allocateBuffer(unsigned long) | WTF::fastMalloc(unsigned long)
Attachments
patch (21.88 KB, patch)
2011-01-25 09:12 PST, Antti Koivisto
oliver: review+
Simon Fraser (smfr)
Comment 1 2011-01-24 21:40:44 PST
Simon Fraser (smfr)
Comment 2 2011-01-24 21:40:59 PST
On SnowLeopard, at r76568.
Simon Fraser (smfr)
Comment 3 2011-01-24 22:07:57 PST
Antti Koivisto
Comment 4 2011-01-25 09:12:19 PST
Created attachment 80069 [details] patch Cache did not know about the subclass so failed to fully delete the items. Got rid of the subclass and moved the classes to separate files.
WebKit Review Bot
Comment 5 2011-01-25 09:15:32 PST
Attachment 80069 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/parser/SourceProviderCache.h:39: The parameter name "item" adds no information, so it should be removed. [readability/parameter_name] [5] Source/JavaScriptCore/parser/SourceProvider.h:33: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 6 2011-01-25 09:18:29 PST
Early Warning System Bot
Comment 7 2011-01-25 09:24:09 PST
Build Bot
Comment 8 2011-01-25 09:34:13 PST
Antti Koivisto
Comment 9 2011-01-25 10:45:21 PST
http://trac.webkit.org/changeset/76611 (with some non-mac build fixes)
WebKit Review Bot
Comment 10 2011-01-25 10:59:16 PST
http://trac.webkit.org/changeset/76611 might have broken Windows Release (Build) and Windows Debug (Build)
Note You need to log in before you can comment on or make changes to this bug.