< prev index next >

test/jdk/jdk/jfr/event/runtime/TestSafepointEvents.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package jdk.jfr.event.runtime;
  26 
  27 import static jdk.test.lib.Asserts.assertTrue;
  28 
  29 import java.nio.file.Paths;
  30 import java.time.Duration;
  31 import java.util.*;
  32 
  33 import jdk.jfr.Recording;
  34 import jdk.jfr.consumer.RecordedEvent;
  35 
  36 import jdk.test.lib.Asserts;
  37 import jdk.test.lib.jfr.EventNames;
  38 import jdk.test.lib.jfr.Events;
  39 import sun.hotspot.WhiteBox;
  40 
  41 /*
  42  * @test TestSafepointEvents
  43  * @key jfr

  44  * @library /test/lib
  45  * @build sun.hotspot.WhiteBox
  46  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  47  *     sun.hotspot.WhiteBox$WhiteBoxPermission
  48  * @run main/othervm -Xbootclasspath/a:.
  49  *                   -XX:+FlightRecorder -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  50  *                   jdk.jfr.event.runtime.TestSafepointEvents
  51  */
  52 public class TestSafepointEvents {
  53 
  54     static final String[] EVENT_NAMES = new String[] {
  55         EventNames.SafepointBegin,
  56         EventNames.SafepointStateSyncronization,
  57         EventNames.SafepointWaitBlocked,
  58         EventNames.SafepointCleanup,
  59         EventNames.SafepointCleanupTask,
  60         EventNames.SafepointEnd
  61     };
  62 
  63     public static void main(String[] args) throws Exception {




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package jdk.jfr.event.runtime;
  26 
  27 import static jdk.test.lib.Asserts.assertTrue;
  28 
  29 import java.nio.file.Paths;
  30 import java.time.Duration;
  31 import java.util.*;
  32 
  33 import jdk.jfr.Recording;
  34 import jdk.jfr.consumer.RecordedEvent;
  35 
  36 import jdk.test.lib.Asserts;
  37 import jdk.test.lib.jfr.EventNames;
  38 import jdk.test.lib.jfr.Events;
  39 import sun.hotspot.WhiteBox;
  40 
  41 /**
  42  * @test TestSafepointEvents
  43  * @key jfr
  44  * @requires vm.hasJFR
  45  * @library /test/lib
  46  * @build sun.hotspot.WhiteBox
  47  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  48  *     sun.hotspot.WhiteBox$WhiteBoxPermission
  49  * @run main/othervm -Xbootclasspath/a:.
  50  *                   -XX:+FlightRecorder -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  51  *                   jdk.jfr.event.runtime.TestSafepointEvents
  52  */
  53 public class TestSafepointEvents {
  54 
  55     static final String[] EVENT_NAMES = new String[] {
  56         EventNames.SafepointBegin,
  57         EventNames.SafepointStateSyncronization,
  58         EventNames.SafepointWaitBlocked,
  59         EventNames.SafepointCleanup,
  60         EventNames.SafepointCleanupTask,
  61         EventNames.SafepointEnd
  62     };
  63 
  64     public static void main(String[] args) throws Exception {


< prev index next >