RFR: 8284616: Implement workaround for CODETOOLS-7901986 in serviceability/jvmti/RedefineClasses

Leonid Mesnik lmesnik at openjdk.java.net
Fri Apr 8 22:22:22 UTC 2022


The tests serviceability/jvmti/RedefineClasses start failing in loom-repo with CNFE like "java.lang.NoClassDefFoundError: jdk/test/lib/compiler/InMemoryJavaCompiler"

It is not a loom specific bug, it might happen in jdk/jdk also.

The workaround is to build some classes explicitly. The fix was implemented in repo-loom in Nov 2021 and there was no such failure after the fix in the loom repo.

Also fix inlcudes some text refactoring to make push from loom smaller.

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

Commit messages:
 - 8284616: Implement workaround for CODETOOLS-7901986 in serviceability/jvmti/RedefineClasses

Changes: https://git.openjdk.java.net/jdk/pull/8170/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8170&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8284616
  Stats: 182 lines in 10 files changed: 25 ins; 0 del; 157 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8170.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8170/head:pull/8170

PR: https://git.openjdk.java.net/jdk/pull/8170


More information about the serviceability-dev mailing list