diff a/test/hotspot/jtreg/gtest/ObjArrayTests.java b/test/hotspot/jtreg/gtest/ObjArrayTests.java --- a/test/hotspot/jtreg/gtest/ObjArrayTests.java +++ b/test/hotspot/jtreg/gtest/ObjArrayTests.java @@ -1,7 +1,8 @@ /* * Copyright Amazon.com Inc. or its affiliates. All rights reserved. + * Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. @@ -27,33 +28,37 @@ */ /* @test id=with-coops * @summary Run object array size tests with compressed oops * @library /test/lib - * @modules java.base/jdk.internal.misc - * java.xml - * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:+UseCompressedOops + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=8 */ /* @test id=no-coops + * @summary Run object array size tests without compressed oops + * @library /test/lib + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:-UseCompressedOops -XX:ObjectAlignmentInBytes=8 + */ + +/* @test id=with-coops-medium-align * @summary Run object array size tests with compressed oops * @library /test/lib - * @modules java.base/jdk.internal.misc - * java.xml - * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:-UseCompressedOops + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=16 + */ + +/* @test id=no-coops-medium-align + * @summary Run object array size tests without compressed oops + * @library /test/lib + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:-UseCompressedOops -XX:ObjectAlignmentInBytes=16 */ /* @test id=with-coops-large-align * @summary Run object array size tests with compressed oops * @library /test/lib - * @modules java.base/jdk.internal.misc - * java.xml - * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:+UseCompressedOops -XX:ObjAlignmentInBytes=256 + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=256 */ /* @test id=no-coops-large-align - * @summary Run object array size tests with compressed oops + * @summary Run object array size tests without compressed oops * @library /test/lib - * @modules java.base/jdk.internal.misc - * java.xml - * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:-UseCompressedOops -XX:ObjAlignmentInBytes=256 + * @run main/native GTestWrapper --gtest_filter=objArrayOop.* -XX:-UseCompressedOops -XX:ObjectAlignmentInBytes=256 */