RFR: 8278923: Document Klass::is_loader_alive

David Holmes dholmes at openjdk.org
Thu Jul 7 12:54:51 UTC 2022


On Wed, 6 Jul 2022 15:07:37 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This trivial change just adds a comment to Klass::is_loader_alive.

src/hotspot/share/oops/klass.inline.hpp line 48:

> 46: // unloading, and hence during concurrent class unloading.
> 47: // This returns false if the Klass is unloaded, or about to be unloaded because the holder of
> 48: // the CLD is strongly reachable.

Is that a typo? I would expect being unreachable to lead to unloading?

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

PR: https://git.openjdk.org/jdk/pull/9400


More information about the hotspot-dev mailing list