From 3f59bfd2e1b35e10fe736e2fa6886cff74ecd35d Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Mon, 2 Jun 2025 07:59:10 +0000 Subject: [PATCH] 8334759: gc/g1/TestMixedGCLiveThreshold.java fails on Windows with JTREG_TEST_THREAD_FACTORY=Virtual due to extra memory allocation Reviewed-by: ayang, iwalulya --- test/hotspot/jtreg/ProblemList-Virtual.txt | 5 ----- test/hotspot/jtreg/gc/g1/TestMixedGCLiveThreshold.java | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/hotspot/jtreg/ProblemList-Virtual.txt b/test/hotspot/jtreg/ProblemList-Virtual.txt index 2239a10f3e7..cb5b92b96cf 100644 --- a/test/hotspot/jtreg/ProblemList-Virtual.txt +++ b/test/hotspot/jtreg/ProblemList-Virtual.txt @@ -83,11 +83,6 @@ vmTestbase/nsk/jdi/VMOutOfMemoryException/VMOutOfMemoryException001/VMOutOfMemor # to make progress when all other threads are currently suspended. vmTestbase/nsk/jdi/ThreadReference/isSuspended/issuspended002/TestDescription.java 8338713 generic-all -### -# Fails on Windows because of additional memory allocation. - -gc/g1/TestMixedGCLiveThreshold.java#25percent 8334759 windows-x64 - ########## ## Tests incompatible with with virtual test thread factory. ## There is no goal to run all test with virtual test thread factory. diff --git a/test/hotspot/jtreg/gc/g1/TestMixedGCLiveThreshold.java b/test/hotspot/jtreg/gc/g1/TestMixedGCLiveThreshold.java index efaea7a097e..66b726223cc 100644 --- a/test/hotspot/jtreg/gc/g1/TestMixedGCLiveThreshold.java +++ b/test/hotspot/jtreg/gc/g1/TestMixedGCLiveThreshold.java @@ -28,6 +28,7 @@ package gc.g1; * @summary Test G1MixedGCLiveThresholdPercent=0. Fill up a region to at least 33 percent, * the region should not be selected for mixed GC cycle. * @requires vm.gc.G1 + * @requires test.thread.factory != "Virtual" * @library /test/lib * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox @@ -39,6 +40,7 @@ package gc.g1; * @summary Test G1MixedGCLiveThresholdPercent=25. Fill up a region to at least 33 percent, * the region should not be selected for mixed GC cycle. * @requires vm.gc.G1 + * @requires test.thread.factory != "Virtual" * @library /test/lib * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox @@ -50,6 +52,7 @@ package gc.g1; * @summary Test G1MixedGCLiveThresholdPercent=100. Fill up a region to at least 33 percent, * the region should be selected for mixed GC cycle. * @requires vm.gc.G1 + * @requires test.thread.factory != "Virtual" * @library /test/lib * @build jdk.test.whitebox.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox