• 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
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...