< prev index next >

test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java

Print this page
*** 313,11 ***
      // These should overflow 4G size boundary
      static final int LARGE_INT_ARRAY_SIZE = 1024*1024*1024 + 1024;
      static final int LARGE_OBJ_ARRAY_SIZE = (4096/(int)REF_SIZE)*1024*1024 + 1024;
  
      static final boolean CCP = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompressedClassPointers");
!     static final int ARRAY_HEADER_SIZE = CCP ? 16 : (Platform.is64bit() ? 20 : 16);
  
      final String mode;
  
      public GetObjectSizeIntrinsicsTest(String name, String mode) {
          super(name);
--- 313,11 ---
      // These should overflow 4G size boundary
      static final int LARGE_INT_ARRAY_SIZE = 1024*1024*1024 + 1024;
      static final int LARGE_OBJ_ARRAY_SIZE = (4096/(int)REF_SIZE)*1024*1024 + 1024;
  
      static final boolean CCP = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompressedClassPointers");
!     static final int ARRAY_HEADER_SIZE = COMPACT_HEADERS ? 8 : (CCP ? 16 : (Platform.is64bit() ? 20 : 16));
  
      final String mode;
  
      public GetObjectSizeIntrinsicsTest(String name, String mode) {
          super(name);
< prev index next >