[jdk20] RFR: 8298162: Test PrintClasses hits assert when run with code that retransform classes

Coleen Phillimore coleenp at openjdk.org
Mon Dec 19 19:03:30 UTC 2022


Allow scratch class to print InstanceKlass fields and not crash.  We might enhance InstanceKlass::print_on() to print more of the misc_flags information in the future so this output (rarely seen) doesn't confuse people.
Tested with failing test case, and tier1-4.

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

Commit messages:
 - Add a test.
 - 8298162: Test PrintClasses hits assert when run with code that retransform classes

Changes: https://git.openjdk.org/jdk20/pull/57/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk20&pr=57&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8298162
  Stats: 12 lines in 2 files changed: 10 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk20/pull/57.diff
  Fetch: git fetch https://git.openjdk.org/jdk20 pull/57/head:pull/57

PR: https://git.openjdk.org/jdk20/pull/57


More information about the hotspot-runtime-dev mailing list