8366476: Test gc/z/TestSmallHeap.java fails OOM with many NUMA nodes

Reviewed-by: jsikstro, aboldtch
This commit is contained in:
SendaoYan 2025-09-03 00:57:52 +00:00
parent 5052a7eee5
commit e268563a10

View File

@ -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,