Ignore:
Timestamp:
Mar 1, 2017, 10:18:04 AM (8 years ago)
Author:
[email protected]
Message:

REGRESSION (r213202?): Assertion failed: (!"initialized()"), function operator()
https://bugs.webkit.org/show_bug.cgi?id=169042

Reviewed by Filip Pizlo.

  • runtime/JSLock.h:

(JSC::JSLock::currentThreadIsHoldingLock):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSLock.h

    r213202 r213229  
    9595
    9696    std::optional<PlatformThread> ownerThread() const { return m_ownerThread; }
    97     bool currentThreadIsHoldingLock() { return m_ownerThread == currentPlatformThread(); }
     97    bool currentThreadIsHoldingLock() { return m_ownerThread && m_ownerThread == currentPlatformThread(); }
    9898
    9999    void willDestroyVM(VM*);
Note: See TracChangeset for help on using the changeset viewer.