[jdk17u-dev] RFR: 8256291: RunThese30M fails "assert(_class_unload ? true : ((((JfrTraceIdBits::load(class_loader_klass)) & ((1 << 4) << 8)) != 0))) failed: invariant"

Rinku Kumar Maurya duke at openjdk.org
Thu May 30 14:19:42 UTC 2024


ClassLoaderData tagging should be changed to include the `class_loader_klass` as well at the tag site, so that an already tagged `cld` implies that `cld->class_loader_klass()` is also appropriately marked. If it's not done, then this unmarked/untagged class_loader_klass may get unloaded and referencing a dead class can cause crashes.

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

Commit messages:
 - Backport e38df21641f13d7ae92f72cf8e72660072d3e5fe

Changes: https://git.openjdk.org/jdk17u-dev/pull/2507/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2507&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8256291
  Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2507.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2507/head:pull/2507

PR: https://git.openjdk.org/jdk17u-dev/pull/2507


More information about the jdk-updates-dev mailing list