[jdk20] RFR: 8298162: Test PrintClasses hits assert when run with code that retransform classes
David Holmes
dholmes at openjdk.org
Tue Dec 20 02:09:52 UTC 2022
On Mon, 19 Dec 2022 18:56:57 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> 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.
Fix looks good but test needs a tweak. Thanks.
test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java line 38:
> 36: * @summary Test jcmd VM.classes
> 37: * @library /test/lib
> 38: * @run main/othervm -XX:StartFlightRecording PrintClasses
I think if you want to run JFR you also need:
* @requires vm.hasJFR
```
and possibly:
* @key jfr
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.org/jdk20/pull/57
More information about the hotspot-runtime-dev
mailing list