[Webkit-unassigned] [Bug 92009] New: WebKit condition variable should use monotonic clock

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 23 10:41:58 PDT 2012


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

           Summary: WebKit condition variable should use monotonic clock
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yoli at rim.com


WebKit condition variable should use monotonic clock, and its consumers should use monotonic time as absolution time. Otherwise, if system date is changed back for a month, some threads could sleep too long...

It seems to me only WebKit is using condition variables only in 2 cases:

1. BlockFreeingThread
2. Timers in Web Worker threads.

The latter uses monotonic time as absolute wait time (see Timer.cpp), but the former uses currentTime.

The solution in my mind is:

1. Make condition variable use absolute time
2. Let BlockFreeingThread uses monotonicallyIncreasingTime()

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