Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 2887263002: Switch to unfair locks on macOS for better performance (?)

Created:
3 years, 7 months ago by DaleCurtis
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch to unfair locks on macOS for better performance (?) In toy test cases this can speed up the run time of contended locks by an order of magnitude. In the spirit of lets see what breaks, this turns on _PTHREAD_MUTEX_POLICY_FIRSTFIT for locks on macOS. BUG=tbd TEST=tbd

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M base/synchronization/lock_impl_posix.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698