commit | 62ae282c378bd6658c877bf3a9e911e41764ec32 | [log] [tgz] |
---|---|---|
author | Brian White <bcwhite@chromium.org> | Wed Oct 25 21:44:03 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Oct 25 21:44:03 2017 |
tree | 5adac367bab5bb17f50405bc75d653c5b9660c82 | |
parent | c36cea26b3a83d09028c1edc077e81dcdc386de2 [diff] |
Don't track locks unless likely to block. Chrome has a huge number of locks that are constantly acquired and released. Most acquisitions don't block and so having them "tracked" by the ActivityTracker tends to be expensive with no possible benefit. If tracking is enabled, simply "try" the lock first and skip the (tracked) blocking call completely. This fixes problems where some run-times were 9x longer than when tracking is not enabled. Bug: 777409 Change-Id: Ic132d50db094a7bfe25677fd35157d4473a106cd Reviewed-on: https://chromium-review.googlesource.com/737858 Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Sigurður Ásgeirsson <siggi@chromium.org> Commit-Queue: Brian White <bcwhite@chromium.org> Cr-Commit-Position: refs/heads/master@{#511599}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .