[Webkit-unassigned] [Bug 121407] [Windows] Embedding in ASP.NET (and other) contexts cause crash on thread termination

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 16 23:18:38 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=121407





--- Comment #4 from Vincent Van Den Berghe <Vincent.VanDenBerghe at bvdinfo.com>  2013-09-16 23:17:46 PST ---
Regarding the overhead of calling destructors at process termination:

A quick search through the Webkit source code shows 1158 instances declared with DEFINE_STATIC_LOCAL. Let's round that up to 1200 instances, to account for the cases like "static AtomicStrings" or others that time forgot.

I suppose there has been performance testing to substantiate the claim that calling all these 1200 destructors would have an overhead significant enough to warrant skipping them. In any case, more than half of these are AtomicStrings (356), Strings (272), QualifiedName (18) and Mutex (15), which have a negligible destructor overhead, so they can't be the party poopers. Which type(s) in WebKit have enough impact in their destructor to warrant NOT calling those at unloading time?

Unloading is not only important for CoFreeUnusedLibraries(). It keeps the sanity of leak trackers as well...

-- 
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