< prev index next >

test/jdk/jdk/jfr/event/oldobject/TestAllocationTime.java

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


  20  *
  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 
  26 package jdk.jfr.event.oldobject;
  27 
  28 import java.util.ArrayList;
  29 import java.util.List;
  30 
  31 import jdk.jfr.Event;
  32 import jdk.jfr.Recording;
  33 import jdk.jfr.consumer.RecordedClass;
  34 import jdk.jfr.consumer.RecordedEvent;
  35 import jdk.jfr.consumer.RecordedObject;
  36 import jdk.jfr.internal.test.WhiteBox;
  37 import jdk.test.lib.jfr.EventNames;
  38 import jdk.test.lib.jfr.Events;
  39 
  40 /*
  41  * @test
  42  * @key jfr

  43  * @requires vm.gc == "null"
  44  * @library /test/lib /test/jdk
  45  * @modules jdk.jfr/jdk.jfr.internal.test
  46  * @run main/othervm  -XX:TLABSize=2k -XX:-FastTLABRefill jdk.jfr.event.oldobject.TestAllocationTime
  47  */
  48 public class TestAllocationTime {
  49 
  50     private static class BeforeLeakEvent extends Event {
  51     }
  52     private static class AfterLeakEvent extends Event {
  53     }
  54     private static class Leak {
  55     }
  56 
  57     public static List<Leak[]> leak = new ArrayList<>(OldObjects.MIN_SIZE);
  58 
  59     public static void main(String[] args) throws Exception {
  60         WhiteBox.setWriteAllObjectSamples(true);
  61 
  62         while(true) {




  20  *
  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 
  26 package jdk.jfr.event.oldobject;
  27 
  28 import java.util.ArrayList;
  29 import java.util.List;
  30 
  31 import jdk.jfr.Event;
  32 import jdk.jfr.Recording;
  33 import jdk.jfr.consumer.RecordedClass;
  34 import jdk.jfr.consumer.RecordedEvent;
  35 import jdk.jfr.consumer.RecordedObject;
  36 import jdk.jfr.internal.test.WhiteBox;
  37 import jdk.test.lib.jfr.EventNames;
  38 import jdk.test.lib.jfr.Events;
  39 
  40 /**
  41  * @test
  42  * @key jfr
  43  * @requires vm.hasJFR
  44  * @requires vm.gc == "null"
  45  * @library /test/lib /test/jdk
  46  * @modules jdk.jfr/jdk.jfr.internal.test
  47  * @run main/othervm  -XX:TLABSize=2k -XX:-FastTLABRefill jdk.jfr.event.oldobject.TestAllocationTime
  48  */
  49 public class TestAllocationTime {
  50 
  51     private static class BeforeLeakEvent extends Event {
  52     }
  53     private static class AfterLeakEvent extends Event {
  54     }
  55     private static class Leak {
  56     }
  57 
  58     public static List<Leak[]> leak = new ArrayList<>(OldObjects.MIN_SIZE);
  59 
  60     public static void main(String[] args) throws Exception {
  61         WhiteBox.setWriteAllObjectSamples(true);
  62 
  63         while(true) {


< prev index next >