On Mon, 12 Oct 2026 13:24:12 GMT, Tobias Hartmann <[email protected]> wrote:

> Some tests fail after 
> [JDK-8393182](https://bugs.openjdk.org/browse/JDK-8393182) in internal stress 
> jobs due to unexpected flags. Let's fix them. Comments in-line.
> 
> Thanks,  
> Tobias
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

test/jdk/java/util/Arrays/ArrayObjectMethods.java line 32:

> 30:  * @library /test/lib
> 31:  * @run main/othervm -Xmx64m ${test.main.class}
> 32:  */

Test fails with `-Xmx20m`, let's fix the heap size.

test/jdk/java/util/Arrays/SortingNearlySortedPrimitive.java line 33:

> 31:  *          Dual-Pivot QuickSort.
> 32:  * @run junit/othervm -Xmx64m SortingNearlySortedPrimitive
> 33:  */

Test fails with `-Xmx20m`, let's fix the heap size.

test/jdk/valhalla/valuetypes/NullRestrictedTest.java line 31:

> 29:  * @enablePreview
> 30:  * @requires (vm.opt.PreloadClasses == null | vm.opt.PreloadClasses == 
> "true")
> 31:  * @run junit/othervm NullRestrictedTest

Test needs preloading for `@NullRestricted` annotation to take effect.

test/jdk/valhalla/valuetypes/Reflection.java line 30:

> 28:  * @enablePreview
> 29:  * @requires (vm.opt.PreloadClasses == null | vm.opt.PreloadClasses == 
> "true")
> 30:  * @run junit/othervm Reflection

Test needs preloading for `@NullRestricted` annotation to take effect.

test/jdk/valhalla/valuetypes/ValueClassPreviewTest.java line 31:

> 29:  * @enablePreview
> 30:  * @requires (vm.opt.UseFieldFlattening == null | 
> vm.opt.UseFieldFlattening == "true")
> 31:  * @compile ${test.file}

Test relies on field flattening because it performs some layout checks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33320#discussion_r4248524003
PR Review Comment: https://git.openjdk.org/jdk/pull/33320#discussion_r4248524758
PR Review Comment: https://git.openjdk.org/jdk/pull/33320#discussion_r4248534758
PR Review Comment: https://git.openjdk.org/jdk/pull/33320#discussion_r4248535191
PR Review Comment: https://git.openjdk.org/jdk/pull/33320#discussion_r4248539271

Reply via email to