RFR (S) 8233086 [TESTBUG] need to test field layout style difference between CDS dump time and run time

Ioi Lam ioi.lam at oracle.com
Wed Nov 6 04:14:57 UTC 2019


https://bugs.openjdk.java.net/browse/JDK-8233086
http://cr.openjdk.java.net/~iklam/jdk14/8233086-cds-field-layout-test.v01/

These VM options control how non-static fields are laid out.

     FieldsAllocationStyle
     CompactFields
     EnableContended
     ContendedPaddingWidth
     RestrictContended

It's possible to set different values for these options between CDS
dump time and program run time. As a result, it's possible to have
an archived super class that has one type of field layout, while an
non-archived sub class that has a different type of field layout.

I added a new test case to verify that the VM works properly when this
happens.

Thanks
- Ioi


More information about the hotspot-runtime-dev mailing list