⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242771 in webkit


Ignore:
Timestamp:
Mar 11, 2019, 9:12:32 PM (7 years ago)
Author:
Fujii Hironori
Message:

[CoordinatedGraphics] ASSERTION FAILED: !m_state.isSuspended
https://bugs.webkit.org/show_bug.cgi?id=195550

Reviewed by Carlos Garcia Campos.

CompositingRunLoop::suspend() locks a mutex and stops the update
timer. But, the timer can be fired after the lock was acquired and
before the timer is stopped.

  • Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:

(WebKit::CompositingRunLoop::updateTimerFired): Removed the
assertion. Return early if m_state.isSuspended.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r242769 r242771  
     12019-03-11  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [CoordinatedGraphics] ASSERTION FAILED: !m_state.isSuspended
     4        https://bugs.webkit.org/show_bug.cgi?id=195550
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        CompositingRunLoop::suspend() locks a mutex and stops the update
     9        timer. But, the timer can be fired after the lock was acquired and
     10        before the timer is stopped.
     11
     12        * Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:
     13        (WebKit::CompositingRunLoop::updateTimerFired): Removed the
     14        assertion. Return early if m_state.isSuspended.
     15
    1162019-03-11  Per Arne Vollan  <pvollan@apple.com>
    217
  • trunk/Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp

    r242597 r242771  
    223223        // Both composition and scene update are now in progress.
    224224        LockHolder locker(m_state.lock);
    225         ASSERT(!m_state.isSuspended);
     225        if (m_state.isSuspended)
     226            return;
    226227        m_state.composition = CompositionState::InProgress;
    227228        m_state.update = UpdateState::InProgress;
Note: See TracChangeset for help on using the changeset viewer.