[PartitionAlloc] Bring back SpinLock as Partition lock.
base::Lock still regresses multiple benchmarks (see crbug.com/1125866) for a summary of regressions. Bring back the SpinLock for non-DCHECK() builds. This is a partial revert of https://chromium-review.googlesource.com/c/chromium/src/+/2390066, with a few changes: - base::subtle::SpinLock -> base::internal::SpinLock - lock()/unlock() -> Acquire()/Release(), to match the usual naming. - Remove unused methods Another motivation for a partial revert (with inlining of SpinLock in partition_lock.h) is to prepare further work to make this lock sleep, if base::Lock's fast path doesn't improve enough. Bug: 1125866, 1125999, 1061437 Change-Id: Ia433b6da870f0a843de67f23d906d37e3f8c0806 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398528Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Benoit L <lizeb@chromium.org> Cr-Commit-Position: refs/heads/master@{#805731}
Showing
Please register or sign in to comment