< prev index next >

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

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


  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.lang.reflect.Array;
  29 import java.util.ArrayList;
  30 import java.util.HashSet;
  31 import java.util.List;
  32 import java.util.Set;
  33 import java.util.concurrent.Callable;
  34 
  35 import jdk.jfr.Recording;
  36 import jdk.jfr.consumer.RecordedEvent;
  37 import jdk.jfr.consumer.RecordedObject;
  38 import jdk.jfr.internal.test.WhiteBox;
  39 import jdk.test.lib.jfr.EventNames;
  40 import jdk.test.lib.jfr.Events;
  41 
  42 /*
  43  * @test
  44  * @key jfr

  45  * @requires vm.gc == "null"
  46  * @library /test/lib /test/jdk
  47  * @modules jdk.jfr/jdk.jfr.internal.test
  48  * @run main/othervm -XX:TLABSize=2k jdk.jfr.event.oldobject.TestObjectDescription
  49  */
  50 public class TestObjectDescription {
  51 
  52     private static final int OBJECT_DESCRIPTION_MAX_SIZE = 100;
  53     private static final String CLASS_NAME = TestClassLoader.class.getName() + "$TestClass";
  54     public static List<?> leaks;
  55 
  56     public final static class MyThreadGroup extends ThreadGroup {
  57         public final static String NAME = "My Thread Group";
  58 
  59         public MyThreadGroup(String name) {
  60             super(name);
  61         }
  62 
  63         // Allocate array to trigger sampling code path for interpreter / c1
  64         byte[] bytes = new byte[10];




  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.lang.reflect.Array;
  29 import java.util.ArrayList;
  30 import java.util.HashSet;
  31 import java.util.List;
  32 import java.util.Set;
  33 import java.util.concurrent.Callable;
  34 
  35 import jdk.jfr.Recording;
  36 import jdk.jfr.consumer.RecordedEvent;
  37 import jdk.jfr.consumer.RecordedObject;
  38 import jdk.jfr.internal.test.WhiteBox;
  39 import jdk.test.lib.jfr.EventNames;
  40 import jdk.test.lib.jfr.Events;
  41 
  42 /**
  43  * @test
  44  * @key jfr
  45  * @requires vm.hasJFR
  46  * @requires vm.gc == "null"
  47  * @library /test/lib /test/jdk
  48  * @modules jdk.jfr/jdk.jfr.internal.test
  49  * @run main/othervm -XX:TLABSize=2k jdk.jfr.event.oldobject.TestObjectDescription
  50  */
  51 public class TestObjectDescription {
  52 
  53     private static final int OBJECT_DESCRIPTION_MAX_SIZE = 100;
  54     private static final String CLASS_NAME = TestClassLoader.class.getName() + "$TestClass";
  55     public static List<?> leaks;
  56 
  57     public final static class MyThreadGroup extends ThreadGroup {
  58         public final static String NAME = "My Thread Group";
  59 
  60         public MyThreadGroup(String name) {
  61             super(name);
  62         }
  63 
  64         // Allocate array to trigger sampling code path for interpreter / c1
  65         byte[] bytes = new byte[10];


< prev index next >