Ignore:
Timestamp:
May 25, 2021, 5:37:19 PM (4 years ago)
Author:
Chris Dumez
Message:

Use UncheckedLock less in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=226212

Reviewed by Saam Barati.

Source/JavaScriptCore:

Use UncheckedLock less in JavaScriptCore as it is being phased out in favor of Lock, which
enables Clang thread safety analysis.

  • assembler/testmasm.cpp:
  • dfg/DFGCommon.cpp:
  • dynbench.cpp:
  • heap/Heap.cpp:
  • heap/Heap.h:
  • inspector/remote/socket/RemoteInspectorSocketEndpoint.h:
  • runtime/JSLock.cpp:
  • runtime/JSLock.h:
  • runtime/VM.h:

Source/WTF:

Add support for unlockEarly() to Locker<Lock> specialization, for consistency
with the generic Locker.

  • wtf/Lock.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dynbench.cpp

    r277943 r278069  
    4141namespace {
    4242
    43 UncheckedLock crashLock;
     43Lock crashLock;
    4444const char* nameFilter;
    4545unsigned requestedIterationCount;
     
    7070} // anonymous namespace
    7171
    72 int main(int argc, char** argv)
     72// Use WTF_IGNORES_THREAD_SAFETY_ANALYSIS because the function keeps holding crashLock when returning.
     73int main(int argc, char** argv) WTF_IGNORES_THREAD_SAFETY_ANALYSIS
    7374{
    7475    if (argc >= 2) {
Note: See TracChangeset for help on using the changeset viewer.