[jdk20] RFR: 8298162: Test PrintClasses hits assert when run with code that retransform classes [v2]
Coleen Phillimore
coleenp at openjdk.org
Tue Dec 20 02:58:10 UTC 2022
On Tue, 20 Dec 2022 02:51:41 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> 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
>
> Thanks David. I copied that line from another test then forgot to put it in mine. I don't see any other @key jfr tests in the runtime directory so I'm not sure I need that.
Only the actual jdk/jdk/jfr tests have @key jfr.
-------------
PR: https://git.openjdk.org/jdk20/pull/57
More information about the hotspot-runtime-dev
mailing list