|
| 1 | +2021-05-26 Chris Dumez <cdumez@apple.com> |
| 2 | + |
| 3 | + Use UncheckedLock even less in JavaScriptCore |
| 4 | + https://bugs.webkit.org/show_bug.cgi?id=226278 |
| 5 | + |
| 6 | + Reviewed by Darin Adler. |
| 7 | + |
| 8 | + Use UncheckedLock even less in JavaScriptCore as it is being phased out in |
| 9 | + favor of Lock, which supports Clang thread safety analysis. |
| 10 | + |
| 11 | + * heap/BlockDirectory.h: |
| 12 | + (JSC::BlockDirectory::WTF_RETURNS_LOCK): |
| 13 | + * heap/CodeBlockSet.h: |
| 14 | + (JSC::CodeBlockSet::WTF_RETURNS_LOCK): |
| 15 | + * heap/Heap.h: |
| 16 | + * heap/MarkedSpace.h: |
| 17 | + (JSC::MarkedSpace::directoryLock): |
| 18 | + * heap/MarkingConstraintSolver.h: |
| 19 | + * heap/SlotVisitor.cpp: |
| 20 | + (JSC::SlotVisitor::donateKnownParallel): |
| 21 | + * heap/SlotVisitor.h: |
| 22 | + * jit/JITWorklist.cpp: |
| 23 | + * jit/JITWorklist.h: |
| 24 | + * jsc.cpp: |
| 25 | + * profiler/ProfilerDatabase.h: |
| 26 | + * runtime/DeferredWorkTimer.h: |
| 27 | + * runtime/VMTraps.cpp: |
| 28 | + (JSC::VMTraps::invalidateCodeBlocksOnStack): |
| 29 | + * runtime/VMTraps.h: |
| 30 | + * tools/FunctionOverrides.cpp: |
| 31 | + (JSC::FunctionOverrides::FunctionOverrides): |
| 32 | + (JSC::FunctionOverrides::reinstallOverrides): |
| 33 | + (JSC::FunctionOverrides::parseOverridesInFile): |
| 34 | + * tools/FunctionOverrides.h: |
| 35 | + (JSC::FunctionOverrides::WTF_REQUIRES_LOCK): |
| 36 | + * tools/VMInspector.cpp: |
| 37 | + (JSC::ensureIsSafeToLock): |
| 38 | + (JSC::VMInspector::codeBlockForMachinePC): |
| 39 | + * wasm/WasmBBQPlan.cpp: |
| 40 | + (JSC::Wasm::BBQPlan::work): |
| 41 | + (JSC::Wasm::BBQPlan::compileFunction): |
| 42 | + (JSC::Wasm::BBQPlan::didCompleteCompilation): |
| 43 | + * wasm/WasmBBQPlan.h: |
| 44 | + * wasm/WasmEntryPlan.cpp: |
| 45 | + (JSC::Wasm::EntryPlan::parseAndValidateModule): |
| 46 | + (JSC::Wasm::EntryPlan::prepare): |
| 47 | + (JSC::Wasm::EntryPlan::ThreadCountHolder::~ThreadCountHolder): |
| 48 | + (JSC::Wasm::EntryPlan::complete): |
| 49 | + * wasm/WasmEntryPlan.h: |
| 50 | + (JSC::Wasm::EntryPlan::tryReserveCapacity): |
| 51 | + * wasm/WasmLLIntPlan.cpp: |
| 52 | + (JSC::Wasm::LLIntPlan::compileFunction): |
| 53 | + (JSC::Wasm::LLIntPlan::didCompleteCompilation): |
| 54 | + (JSC::Wasm::LLIntPlan::completeInStreaming): |
| 55 | + (JSC::Wasm::LLIntPlan::didFailInStreaming): |
| 56 | + * wasm/WasmLLIntPlan.h: |
| 57 | + * wasm/WasmOMGForOSREntryPlan.cpp: |
| 58 | + (JSC::Wasm::OMGForOSREntryPlan::work): |
| 59 | + * wasm/WasmOMGForOSREntryPlan.h: |
| 60 | + * wasm/WasmOMGPlan.cpp: |
| 61 | + (JSC::Wasm::OMGPlan::work): |
| 62 | + * wasm/WasmOMGPlan.h: |
| 63 | + * wasm/WasmPlan.cpp: |
| 64 | + (JSC::Wasm::Plan::runCompletionTasks): |
| 65 | + (JSC::Wasm::Plan::tryRemoveContextAndCancelIfLast): |
| 66 | + (JSC::Wasm::Plan::fail): |
| 67 | + * wasm/WasmPlan.h: |
| 68 | + * wasm/WasmStreamingCompiler.cpp: |
| 69 | + (JSC::Wasm::StreamingCompiler::didCompileFunction): |
| 70 | + (JSC::Wasm::StreamingCompiler::completeIfNecessary): |
| 71 | + (JSC::Wasm::StreamingCompiler::didComplete): |
| 72 | + (JSC::Wasm::StreamingCompiler::finalize): |
| 73 | + * wasm/WasmStreamingCompiler.h: |
| 74 | + * wasm/WasmStreamingPlan.cpp: |
| 75 | + (JSC::Wasm::StreamingPlan::work): |
| 76 | + * wasm/WasmStreamingPlan.h: |
| 77 | + * wasm/WasmThunks.h: |
| 78 | + |
1 | 79 | 2021-05-26 Chris Dumez <cdumez@apple.com> |
2 | 80 |
|
3 | 81 | Stop using UncheckedLock in WTF::AutomaticThread |
|
0 commit comments