[Webkit-unassigned] [Bug 21810] New: Remove use of static C++ objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 22 14:31:32 PDT 2008


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

           Summary: Remove use of static C++ objects
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bolsinga at apple.com


Remove use of static C++ objects in general, but for an example from Timer.cpp:

static Vector<TimerBase*>* timerHeap;
static HashSet<const TimerBase*>* timersReadyToFire;

In a multi-threaded WebCore environment, a thread may be using these while the
main thread is deleting them causing crashes.

Objects like this are also held in memory until exit is called, when the C++
runtime cleans these up. So the destructors only run at exit and don't really
provide any benefit. Without them, the program would quit somewhat faster. ;)


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list