Changeset 249628 in webkit


Ignore:
Timestamp:
Sep 7, 2019 10:57:17 PM (5 years ago)
Author:
david_quesada@apple.com
Message:

REGRESSION(r248533): Unable to use WTF::RefCounted when building in a debug configuration against a non-debug WebKit
https://bugs.webkit.org/show_bug.cgi?id=201585
rdar://problem/55153369

Reviewed by Chris Dumez.

Export WTF::RefCountedBase::areThreadingChecksEnabledGlobally regardless of whether or not assertions
are enabled for the WTF being built. This allows WebKit-based projects to use RefCounted for their own
objects in a debug configuration without requiring a debug build of WebKit.

  • wtf/RefCounted.cpp:
  • wtf/RefCounted.h:
Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r249613 r249628  
     12019-09-07  David Quesada  <david_quesada@apple.com>
     2
     3        REGRESSION(r248533): Unable to use WTF::RefCounted when building in a debug configuration against a non-debug WebKit
     4        https://bugs.webkit.org/show_bug.cgi?id=201585
     5        rdar://problem/55153369
     6
     7        Reviewed by Chris Dumez.
     8
     9        Export WTF::RefCountedBase::areThreadingChecksEnabledGlobally regardless of whether or not assertions
     10        are enabled for the WTF being built. This allows WebKit-based projects to use RefCounted for their own
     11        objects in a debug configuration without requiring a debug build of WebKit.
     12
     13        * wtf/RefCounted.cpp:
     14        * wtf/RefCounted.h:
     15
    1162019-09-07  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/WTF/wtf/RefCounted.cpp

    r248533 r249628  
    2424namespace WTF {
    2525
    26 #if !ASSERT_DISABLED
    2726bool RefCountedBase::areThreadingChecksEnabledGlobally { false };
    28 #endif
    2927
    3028}
  • trunk/Source/WTF/wtf/RefCounted.h

    r249064 r249628  
    165165    mutable bool m_isOwnedByMainThread;
    166166    bool m_areThreadingChecksEnabled { true };
     167#endif
    167168    WTF_EXPORT_PRIVATE static bool areThreadingChecksEnabledGlobally;
    168 #endif
    169169#if CHECK_REF_COUNTED_LIFECYCLE
    170170    mutable bool m_deletionHasBegun;
Note: See TracChangeset for help on using the changeset viewer.