--- a/test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentObjectAlignment.java Thu Aug 02 09:27:40 2018 -0700
+++ b/test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentObjectAlignment.java Thu Aug 02 14:40:55 2018 -0700
@@ -29,10 +29,12 @@
* is different from object alignment for creating a CDS file
* should fail when loading.
* @requires vm.cds
+ * @requires vm.bits == 64
* @library /test/lib
* @bug 8025642
* @modules java.base/jdk.internal.misc
* java.management
+ * @run main CdsDifferentObjectAlignment
*/
import jdk.test.lib.cds.CDSTestUtils;
@@ -40,20 +42,12 @@
import jdk.test.lib.Platform;
public class CdsDifferentObjectAlignment {
+
public static void main(String[] args) throws Exception {
- String nativeWordSize = System.getProperty("sun.arch.data.model");
- if (!Platform.is64bit()) {
- System.out.println("ObjectAlignmentInBytes for CDS is only " +
- "supported on 64bit platforms; this plaform is " +
- nativeWordSize);
- System.out.println("Skipping the test");
- } else {
- createAndLoadSharedArchive(16, 64);
- createAndLoadSharedArchive(64, 32);
- }
+ createAndLoadSharedArchive(16, 64);
+ createAndLoadSharedArchive(64, 32);
}
-
// Parameters are object alignment expressed in bytes
private static void
createAndLoadSharedArchive(int createAlignment, int loadAlignment)