diff --git a/test/hotspot/jtreg/gc/cms/DisableResizePLAB.java b/test/hotspot/jtreg/gc/cms/DisableResizePLAB.java index 5c8d2e822b3..093b85a7a5d 100644 --- a/test/hotspot/jtreg/gc/cms/DisableResizePLAB.java +++ b/test/hotspot/jtreg/gc/cms/DisableResizePLAB.java @@ -41,6 +41,7 @@ public class DisableResizePLAB { } long startTime = System.currentTimeMillis(); while (System.currentTimeMillis() - startTime < 10_000) { + @SuppressWarnings("unused") Object o = new byte[1024]; } }