RFR: 8255582: Introduce SemaphoreLock and SemaphoreLocker

Robbin Ehn rehn at openjdk.java.net
Thu Oct 29 13:50:43 UTC 2020


On Thu, 29 Oct 2020 13:21:02 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> I'm closing this PR, given the other available alternatives.
> 
> Though I must say, I don't think it's fair to use an "imminent rewrite of the lock ranking" as a motivation to push back on my wish to use some kind of locking that doesn't force me to fake a lock order when the code intend to be a leaf operation. A lock ranking rewrite has been discussed for over a decade now.

The problem is that people think they are leaf, but they are really not.
If they truly where leaf, shouldn't setting lock rank to 'event' always work?

-------------

PR: https://git.openjdk.java.net/jdk/pull/927


More information about the hotspot-dev mailing list