-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve recursive unfair lock: (#1742)
- Use relaxed memory since we don't need acquire/release. This'll make it faster. - Add a couple assertions and organize the code better. - In contested case, just lock instead of tryLock-fail-lock. - In recursive case, do not tryLock. Just notice it's recursive and be done. - In uncontested case, just lock instead of tryLock. PRESUBMIT=passed BUG=137413265 R=maicki CC=maxwang,rexhu,wiseoldduck,yt-elements-eng+cl REQUIRED_REVIEW=1 DELTA=50 (14 added, 13 deleted, 23 changed) DELTA_BY_EXTENSION=h=1,mm=36 OCL=278419008 P4 change: 278454084
- Loading branch information
1 parent
9337795
commit d688ce3
Showing
2 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters