From e268563a10b67bdcb3c030743ed3e2b3b7dfd0f7 Mon Sep 17 00:00:00 2001 From: SendaoYan Date: Wed, 3 Sep 2025 00:57:52 +0000 Subject: [PATCH] 8366476: Test gc/z/TestSmallHeap.java fails OOM with many NUMA nodes Reviewed-by: jsikstro, aboldtch --- test/hotspot/jtreg/gc/z/TestSmallHeap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/gc/z/TestSmallHeap.java b/test/hotspot/jtreg/gc/z/TestSmallHeap.java index c3c0dddd8e8..9a65227a10b 100644 --- a/test/hotspot/jtreg/gc/z/TestSmallHeap.java +++ b/test/hotspot/jtreg/gc/z/TestSmallHeap.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2025, 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 @@ -54,6 +54,8 @@ public class TestSmallHeap { public static void main(String[] args) throws Exception { for (var maxCapacity: args) { ProcessTools.executeTestJava( + // Disable NUMA to avoid potential OOM after JDK-8359683 + "-XX:-UseNUMA", "-XX:+UseZGC", "-Xlog:gc,gc+init,gc+reloc,gc+heap", "-Xmx" + maxCapacity,