8233888: jdk.vm.ci.hotspot.test.VirtualObjectLayoutTest.testFormat(): Unexpected error verifying

Reviewed-by: kvn, iignatyev
This commit is contained in:
Tom Rodriguez 2019-11-14 16:34:24 -08:00
parent 327521aae0
commit ddc8f8e757

View File

@ -97,9 +97,9 @@ public abstract class VirtualObjectTestBase {
JavaValue[] values = getJavaValues(kinds);
test(simple, values, kinds, false);
// Spread a long value across two int fields
// Spread a long value across two int fields starting at an aligned field
kinds = Arrays.copyOf(fieldKinds, fieldKinds.length - 1);
kinds[1] = JavaKind.Long;
kinds[fields[0].getOffset() % 8 == 0 ? 0 : 1] = JavaKind.Long;
test(simple, getJavaValues(kinds), kinds, false);
// Produce a long value for the final int field so there is no matching int field for the