Have YIELD_PROCESSOR sleep for 1ms under TSAN
TSAN intercepts atomic accesses and uses locking. Since YIELD_PROCESSOR is used in spinlock loops in conjunction with atomic accesses, such spinlock loops can exhibit starvation in TSAN. To work around the problem, have YIELD_PROCESSOR sleep the process for 1ms. Change-Id: I042368cfc6b55abdba5c897a8f23cc633a70ba13 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3651514Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#80679}
Showing
Please
register
or
sign in
to comment