RFR: 8254877: GCLogPrecious::_lock rank constrains what locks you are allowed to have when crashing [v2]

Stefan Karlsson stefank at openjdk.java.net
Thu Oct 29 09:50:49 UTC 2020


On Thu, 29 Oct 2020 09:40:19 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> It's used as a lock, so I think the name `_lock` is appropriate. Instead I introduced a new class: `SemaphoreLock`, to make the code more readable (IMHO). Also added a comment. Hopefully, this addressed your comments.
>
> Thank you; it does look more readable. BTW, mutex has `try_lock` as well.

I see. Then I'll remove that part of the new comment.

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

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


More information about the hotspot-dev mailing list