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

ARRAY_HEADER_SIZE is wrong for 32 bit. Should be 12 - 4 bytes mark word, 4 
bytes klass, 4 bytes array length.  Any rounding required is not part of this 
calculation.

Practically it does not matter for the test, since all values are aligned up to 
object alignment anyway, which is hard-coded to 8 bytes for 32bit, and cannot 
be smaller than machine word size on 64-bit. Just a clarity issue.

-------------

Commit messages:
 - Merge branch 'jdk-8377456-obj-hdr-size-wrong' of 
https://github.com/stooke/jdk into jdk-8377456-obj-hdr-size-wrong
 - 8377456: GetObjectSizeIntrinsicsTest.java, ARRAY_HEADER_SIZE wrong for 32-bit

Changes: https://git.openjdk.org/jdk/pull/30246/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30246&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377456
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/30246.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30246/head:pull/30246

PR: https://git.openjdk.org/jdk/pull/30246

Reply via email to