< prev index next >

test/jdk/jdk/jfr/event/allocation/TestObjectAllocationInNewTLABEvent.java

Print this page
*** 63,12 ***
   */
  public class TestObjectAllocationInNewTLABEvent {
      private final static String EVENT_NAME = EventNames.ObjectAllocationInNewTLAB;
  
      private static final Boolean COMPRESSED_CLASS_PTRS = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompressedClassPointers");
  
!     private static final int BYTE_ARRAY_OVERHEAD = (Platform.is64bit() && !COMPRESSED_CLASS_PTRS) ? 24 : 16;
      private static final int OBJECT_SIZE = 128 * 1024;
  
      private static final int OBJECTS_TO_ALLOCATE = 100;
      private static final String BYTE_ARRAY_CLASS_NAME = new byte[0].getClass().getName();
      private static final int INITIAL_TLAB_SIZE = 100 * 1024;
--- 63,13 ---
   */
  public class TestObjectAllocationInNewTLABEvent {
      private final static String EVENT_NAME = EventNames.ObjectAllocationInNewTLAB;
  
      private static final Boolean COMPRESSED_CLASS_PTRS = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompressedClassPointers");
+     private static final Boolean COMPACT_HEADERS = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompactObjectHeaders");
  
!     private static final int BYTE_ARRAY_OVERHEAD = COMPACT_HEADERS ? 12 : ((Platform.is64bit() && !COMPRESSED_CLASS_PTRS) ? 24 : 16);
      private static final int OBJECT_SIZE = 128 * 1024;
  
      private static final int OBJECTS_TO_ALLOCATE = 100;
      private static final String BYTE_ARRAY_CLASS_NAME = new byte[0].getClass().getName();
      private static final int INITIAL_TLAB_SIZE = 100 * 1024;
< prev index next >