RFR: 8264742: member variable _monitor of MonitorLocker is redundant

Coleen Phillimore coleenp at openjdk.java.net
Tue Apr 6 12:21:21 UTC 2021


On Tue, 6 Apr 2021 04:05:21 GMT, Xin Liu <xliu at openjdk.org> wrote:

> MonitorLocker is a subclass of MutexLocker. The member variable _monitor
> has the same value of _mutex in its base class.

This is ok. I was worried about the cast defeating type safety but as long as as_monitor is in MonitorLocker, that's fine.

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

Marked as reviewed by coleenp (Reviewer).

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


More information about the hotspot-runtime-dev mailing list