[Webkit-unassigned] [Bug 30408] New: ThreadSpecific instances or ThreadGlobalData instance is being leaked when the WebKit library is being reloaded.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 15 14:49:04 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30408
Summary: ThreadSpecific instances or ThreadGlobalData instance
is being leaked when the WebKit library is being
reloaded.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: carol.szabo at nokia.com
Some of WebKit including ThreadGlobalData implementation is written with the
assumption that some singletons will be cleaned up by the OS when the process
quits and therefore they can be leaked.
Beside this not being an elegant solution, it does not cover all cases such as
the case when WebKit is used as component or widget in a larger process and
hence the library may be loaded and unloaded multiple times before the process
quits. With each load and unload memory (and genrally resources) associated
with these singletons is leaked.
My goal is to chase down these singletons and ensure that they are destroyed
when the library is unloaded.
One strategy in doing this is to transform the pointers to global static
objects.
Another is to transform pointers into smart pointers such as OwnPtr.
Patches to follow.
--
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