From 026aede81e20baafe06cf1a0afd72e94896938ee Mon Sep 17 00:00:00 2001 From: Ioi Lam Date: Wed, 20 May 2026 20:45:04 +0000 Subject: [PATCH] 8385096: Test runtime/cds/MetaspaceAllocGaps.java fails on Windows Reviewed-by: shade, kvn --- test/hotspot/jtreg/runtime/cds/MetaspaceAllocGaps.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/hotspot/jtreg/runtime/cds/MetaspaceAllocGaps.java b/test/hotspot/jtreg/runtime/cds/MetaspaceAllocGaps.java index 65459263e36..df297ddbaa3 100644 --- a/test/hotspot/jtreg/runtime/cds/MetaspaceAllocGaps.java +++ b/test/hotspot/jtreg/runtime/cds/MetaspaceAllocGaps.java @@ -49,14 +49,8 @@ public class MetaspaceAllocGaps { .classpath(appJar) .appCommandLine("Hello") .setTrainingChecker((OutputAnalyzer out) -> { - // Typically all gaps should be filled. If not, we probably have a regression in C++ class ArchiveUtils. - // - // [0.422s][debug][aot ] Detailed metadata info (excluding heap region): - // [...] - // [0.422s][debug][aot ] Gap : 0 0 0.0 | 0 0 0.0 | 0 0 0.0 <<< look for this pattern - out.shouldMatch("Allocated [1-9][0-9]+ objects of [1-9][0-9]+ bytes in gaps .remain = 0 bytes") - .shouldMatch("debug.* Gap .*0[.]0.*0[.]0.*0[.]0") - .shouldNotMatch("Unexpected .* gaps .* for Klass alignment"); + // We should have only very minimal amount of gaps left unfilled. See JDK-8383503 + out.shouldNotMatch("Unexpected .* gaps .* for Klass alignment"); }) .setProductionChecker((OutputAnalyzer out) -> { out.shouldContain("HelloWorld");