[Webkit-unassigned] [Bug 51712] New: After r57004, readonly attributes that return non-constant values, leak wrappers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 29 10:03:06 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=51712
Summary: After r57004, readonly attributes that return
non-constant values, leak wrappers
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mnaganov at chromium.org
CC: japhet at chromium.org, vitalyr at chromium.org
In https://trac.webkit.org/changeset/57004, CodeGeneratorV8 is changed to cache wrappers for 'readonly' IDL values, using native object pointer as a hash value. That means, if different object pointer value is returned, previous wrapper will stall in the cache, creating a memory leak. For example, that happened with MemoryInfo object which is created anew on every Console::memory() call. 'readonly' doesn't mean 'constant'!
I think, this logic needs to be revised, because nothing in .idl specifies that getter value returns the same native pointer.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list