The assertion implies the possible transition _keep_alive = 0 -> _keep_alive = 1, which has implication to GC.
Based on comments inJDK-8162553, it was done this way due to null class loader data having a _keep_alive value of 0.
However, we now set null class loader data's _keep_alive = 1 in ClassLoaderData's constructor, so above case should not happen. Let's tighten the assertion to avoid confusion.
Based on comments in
However, we now set null class loader data's _keep_alive = 1 in ClassLoaderData's constructor, so above case should not happen. Let's tighten the assertion to avoid confusion.
- relates to
-
JDK-8162553 Crash in class unloading due to null CLD having a zero _keep_alive value
-
- Closed
-