cstamas opened a new pull request, #461:
URL: https://github.com/apache/maven-resolver/pull/461

   Instead to immediately give up and sleep, they will sit a while to enter 
critical region. This is important for "hot" locks.
   
   Explanation: currently a "loser" will _immediately give up_ and will go to 
sleep 100ms if cannot enter critical region, even if winner exits critical 
region within next 5ms. The retry is needed to ensure that it is retried as 
much as given time/unit takes, that was before consumed by constant 
retries+sleeps. The logic still works, as if tryLock spends time/unit waiting 
on criticalRegion (which is possible only on VERY HIGHLY congested locks), 
there will be no retry happening.
   
   Backport of 089796ba66d6f5f1a9d4fa7f797f613bae4f5373
   
   ---
   
   https://issues.apache.org/jira/browse/MRESOLVER-522


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to