diff --git a/test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java b/test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java index bd83dba3a85..84331048dec 100644 --- a/test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java +++ b/test/hotspot/jtreg/gc/g1/humongousObjects/TestNoAllocationsInHRegions.java @@ -139,6 +139,7 @@ public class TestNoAllocationsInHRegions { // Dead object allocation () -> { int size = RND.nextInt(DEAD_OBJECT_MAX_SIZE); + @SuppressWarnings("unused") byte[] deadObject = new byte[size]; },