commit | fdf17e0882099ea5fd62d10577100a203a3d9ec7 | [log] [tgz] |
---|---|---|
author | bcwhite <bcwhite@chromium.org> | Tue Oct 11 18:34:02 2016 |
committer | Commit bot <commit-bot@chromium.org> | Tue Oct 11 18:36:43 2016 |
tree | 6f67e620c14064c5af316e9da3847675e360fa08 | |
parent | cd86aeb9ccdfd2fbb0716b516518699d8a0bddb0 [diff] |
Go lock-free for RolloverProtectedNow() This turns a global lock acquisition with every TimeTicks::Now() into a single 32-bit atomic load in most cases, with a 32-bit CAS about once every 4.5 hours. It also allows code that tracks locks (for hang detection) to not cause a recursive loop when recording the time at which a lock is being acquired. BUG=652432 Review-Url: https://codereview.chromium.org/2393953003 Cr-Commit-Position: refs/heads/master@{#424495}