Fixing this will allow sampling profiler tests to run with JSC_useJIT=0 without crashing.
Created attachment 400267 [details] proposed patch.
Comment on attachment 400267 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=400267&action=review > Source/JavaScriptCore/ChangeLog:3 > + SamplingProfiler::takeSample() should assume that ENABLE(WEBASSEMBLY) means Wasm is enabled. should => should not
Comment on attachment 400267 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=400267&action=review > Source/JavaScriptCore/runtime/SamplingProfiler.cpp:357 > + Lock unusedLock; > + auto wasmCalleesLocker = holdLock(Wasm::isSupported() ? Wasm::CalleeRegistry::singleton().getLock() : unusedLock); why not just use Optional<LockHolder>? Seems cleaner than this unusedLock approach
Created attachment 400270 [details] proposed patch.
Committed r262161: <https://trac.webkit.org/changeset/262161> All reviewed patches have been landed. Closing bug and clearing flags on attachment 400270 [details].
<rdar://problem/63642209>