• Clemens Backes's avatar
    [base] Avoid pthread_rwlock_t on Mac · 3a44f269
    Clemens Backes authored
    pthread_rwlock_t can deadlock on Mac if signals are sent to the process
    in the wrong moment. Since we use processes e.g. for sampling profiling
    (in both d8 and in Chrome), we hence cannot safely use pthread_rwlock_t
    on Mac. Instead, fall back to a non-shared pthread_mutex_t.
    
    Interestingly, this shows no measurable performance impact in Wasm
    compilation on my MBP.
    
    R=mlippautz@chromium.org
    
    Bug: v8:11399
    Change-Id: Ie8bfd5288bba8c4f3315ee4502b39b59d39c9bbd
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3060480Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#76015}
    3a44f269
Name
Last commit
Last update
..
console Loading commit data...
counters Loading commit data...
cpu-profiler Loading commit data...
debugger Loading commit data...
heap-profiler Loading commit data...
regress Loading commit data...
runtime Loading commit data...
runtime-call-stats Loading commit data...
sessions Loading commit data...
type-profiler Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
frontend-channel.h Loading commit data...
inspector-test.cc Loading commit data...
inspector.status Loading commit data...
isolate-data.cc Loading commit data...
isolate-data.h Loading commit data...
json-parse-expected.txt Loading commit data...
json-parse.js Loading commit data...
print-method-not-found-expected.txt Loading commit data...
print-method-not-found.js Loading commit data...
protocol-test.js Loading commit data...
task-runner.cc Loading commit data...
task-runner.h Loading commit data...
tasks.cc Loading commit data...
tasks.h Loading commit data...
testcfg.py Loading commit data...
utils.cc Loading commit data...
utils.h Loading commit data...
wasm-inspector-test.js Loading commit data...