RFR: 8273300: Check Mutex ranking during a safepoint [v4]

David Holmes dholmes at openjdk.java.net
Wed Sep 15 13:03:47 UTC 2021


On Wed, 15 Sep 2021 11:51:49 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> src/hotspot/share/runtime/mutex.hpp line 53:
>> 
>>> 51:        special        = tty            +   3,
>>> 52:        oopstorage     = special        +   3,
>>> 53:        leaf           = oopstorage     +  10,
>> 
>> Why do we need such a big gap here? Is there any reason we can't just use the same gap between all named rankings? As it is there seems to be no rationale for the  "+ N" value used.
>
> The gap is pretty much arbitrary, but there's already some leaf-2 and having overlapping rankings is something we don't really want, so I changed it to 10 for now.

Okay but is there a reason not to use the same gap?

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

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


More information about the shenandoah-dev mailing list