Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve recursive unfair lock #1742

Merged
merged 1 commit into from
Dec 10, 2019
Merged

Improve recursive unfair lock #1742

merged 1 commit into from
Dec 10, 2019

Commits on Dec 9, 2019

  1. Improve recursive unfair lock:

    - 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
    adlai authored and Adlai-Holler committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    fd95e68 View commit details
    Browse the repository at this point in the history