Integrated: 8323631: JfrTypeSet::write_klass can enqueue a CLD klass that is unloading

Markus Grönlund mgronlun at openjdk.org
Tue Jan 16 13:36:27 UTC 2024


On Mon, 15 Jan 2024 22:42:51 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> [JDK-8316241](https://bugs.openjdk.org/browse/JDK-8316241) introduced a bug where a CLD klass that may be in the process of being unloaded can erroneously get enqueued (because it does not go through the proper registration for unloading). This is a result of the attempt to make artefact tagging deep, by transitively marking (and enqueuing) CLD klasses.
> 
> However, during class unloading, it is possible that a CLD klass is itself being unloaded. There must be a check for this situation so that klasses being unloaded are not enqueued.
> 
> Testing: jdk_jfr, stress testing
> 
> Thanks
> Markus

This pull request has now been integrated.

Changeset: e2d6023c
Author:    Markus Grönlund <mgronlun at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e2d6023cb9667dc9911e0af421d6dd0c78f6bf58
Stats:     58 lines in 1 file changed: 32 ins; 26 del; 0 mod

8323631: JfrTypeSet::write_klass can enqueue a CLD klass that is unloading

Reviewed-by: egahlin

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

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


More information about the hotspot-jfr-dev mailing list