22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.jfr.event.compiler;
27
28 import static jdk.test.lib.Asserts.assertFalse;
29
30 import java.lang.reflect.Method;
31 import java.util.HashSet;
32 import java.util.List;
33 import java.util.Set;
34
35 import jdk.jfr.Recording;
36 import jdk.jfr.consumer.RecordedEvent;
37 import jdk.test.lib.Utils;
38 import jdk.test.lib.jfr.EventNames;
39 import jdk.test.lib.jfr.Events;
40 import sun.hotspot.WhiteBox;
41
42 /*
43 * @test
44 * @key jfr
45 * @requires vm.compMode!="Xint"
46 * @library /test/lib
47 * @build sun.hotspot.WhiteBox
48 * @run main ClassFileInstaller sun.hotspot.WhiteBox
49 * sun.hotspot.WhiteBox$WhiteBoxPermission
50 * @run main/othervm -Xbootclasspath/a:.
51 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
52 * jdk.jfr.event.compiler.TestCompilerCompile
53 */
54 public class TestCompilerCompile {
55 private final static String EVENT_NAME = EventNames.Compilation;
56 private final static String METHOD_NAME = "dummyMethod";
57 private boolean foundKnownMethod = false;
58 private boolean foundOsrMethod = false;
59
60 public static void main(String[] args) throws Throwable {
61 TestCompilerCompile test = new TestCompilerCompile();
62 test.doTest();
63 }
64
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.jfr.event.compiler;
27
28 import static jdk.test.lib.Asserts.assertFalse;
29
30 import java.lang.reflect.Method;
31 import java.util.HashSet;
32 import java.util.List;
33 import java.util.Set;
34
35 import jdk.jfr.Recording;
36 import jdk.jfr.consumer.RecordedEvent;
37 import jdk.test.lib.Utils;
38 import jdk.test.lib.jfr.EventNames;
39 import jdk.test.lib.jfr.Events;
40 import sun.hotspot.WhiteBox;
41
42 /**
43 * @test
44 * @key jfr
45 * @requires vm.hasJFR
46 * @requires vm.compMode!="Xint"
47 * @library /test/lib
48 * @build sun.hotspot.WhiteBox
49 * @run main ClassFileInstaller sun.hotspot.WhiteBox
50 * sun.hotspot.WhiteBox$WhiteBoxPermission
51 * @run main/othervm -Xbootclasspath/a:.
52 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
53 * jdk.jfr.event.compiler.TestCompilerCompile
54 */
55 public class TestCompilerCompile {
56 private final static String EVENT_NAME = EventNames.Compilation;
57 private final static String METHOD_NAME = "dummyMethod";
58 private boolean foundKnownMethod = false;
59 private boolean foundOsrMethod = false;
60
61 public static void main(String[] args) throws Throwable {
62 TestCompilerCompile test = new TestCompilerCompile();
63 test.doTest();
64 }
65
|