-
Bug
-
Resolution: Fixed
-
P4
-
None
-
repo-lilliput
-
None
-
generic
-
generic
The test needs a minor adjustment for Lilliput2, where the header size has compacted further since Lilliput1 when it was last fixed to deal with the compact header size.
The test passes with the following change:
```
--- a/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
+++ b/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
@@ -315,7 +315,7 @@ public class GetObjectSizeIntrinsicsTest extends ASimpleInstrumentationTestCase
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);
+ static final int ARRAY_HEADER_SIZE = COMPACT_HEADERS ? 8 : (CCP ? 16 : (Platform.is64bit() ? 20 : 16));
final String mode;
```
The test passes with the following change:
```
--- a/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
+++ b/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
@@ -315,7 +315,7 @@ public class GetObjectSizeIntrinsicsTest extends ASimpleInstrumentationTestCase
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);
+ static final int ARRAY_HEADER_SIZE = COMPACT_HEADERS ? 8 : (CCP ? 16 : (Platform.is64bit() ? 20 : 16));
final String mode;
```
- links to
-
Commit(master)
openjdk/lilliput/5561a31d
-
Review(master)
openjdk/lilliput/204