test/hotspot/jtreg/runtime/appcds/customLoader/HelloCustom_JFR.java
changeset 54927 1512d88b24c6
parent 54340 2221f042556d
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
    28  *          options. This makes sure that the shared classes are compatible with both
    28  *          options. This makes sure that the shared classes are compatible with both
    29  *          JFR and JVMTI ClassFileLoadHook.
    29  *          JFR and JVMTI ClassFileLoadHook.
    30  * @requires vm.hasJFR
    30  * @requires vm.hasJFR
    31  * @requires vm.cds
    31  * @requires vm.cds
    32  * @requires vm.cds.custom.loaders
    32  * @requires vm.cds.custom.loaders
    33  * @library /test/lib /test/hotspot/jtreg/runtime/appcds
    33  * @library /test/lib /test/hotspot/jtreg/runtime/appcds /runtime/testlibrary
    34  * @compile test-classes/Hello.java test-classes/CustomLoadee.java
    34  * @compile test-classes/HelloUnload.java test-classes/CustomLoadee.java
    35  * @build sun.hotspot.WhiteBox
    35  * @build sun.hotspot.WhiteBox ClassUnloadCommon
    36  * @run driver ClassFileInstaller -jar hello.jar Hello
    36  * @run driver ClassFileInstaller -jar hello.jar HelloUnload ClassUnloadCommon ClassUnloadCommon$1 ClassUnloadCommon$TestFailure
    37  * @run driver ClassFileInstaller -jar hello_custom.jar CustomLoadee
    37  * @run driver ClassFileInstaller -jar hello_custom.jar CustomLoadee
    38  * @run driver ClassFileInstaller -jar WhiteBox.jar sun.hotspot.WhiteBox
    38  * @run driver ClassFileInstaller -jar WhiteBox.jar sun.hotspot.WhiteBox
    39  * @run driver HelloCustom_JFR
    39  * @run driver HelloCustom_JFR
    40  */
    40  */
    41 
    41 
    45 public class HelloCustom_JFR {
    45 public class HelloCustom_JFR {
    46     public static void main(String[] args) throws Exception {
    46     public static void main(String[] args) throws Exception {
    47         HelloCustom.run("-XX:StartFlightRecording=dumponexit=true", "-Xlog:cds+jvmti=debug");
    47         HelloCustom.run("-XX:StartFlightRecording=dumponexit=true", "-Xlog:cds+jvmti=debug");
    48     }
    48     }
    49 }
    49 }
    50