RFR: 8292916: Streamline LoaderConstraint purging [v3]
Ioi Lam
iklam at openjdk.org
Thu Sep 1 18:25:25 UTC 2022
On Thu, 1 Sep 2022 18:20:27 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> That's when the probe was removed in the old code, the code was reached unconditionally whether klass is alive or not. If it wasn't removed, we do assert that klass is alive. I was trying to figure out why 2, but if the constraint wasn't between at least two loaders (if the rest of the loaders are unloaded, you might still have bootstrap remaining, which is never removed), it should be removed.
>
> How about adding a test to check for "purging complete constraint for name" in the log to make sure this code is exercised?
And why was this assert removed?
assert(probe->klass()->is_loader_alive(), "klass should be live");
-------------
PR: https://git.openjdk.org/jdk/pull/10023
More information about the hotspot-runtime-dev
mailing list