< prev index next >

test/hotspot/jtreg/gc/arguments/TestTargetSurvivorRatioFlag.java

8217389: JTREG: Clean up, remove unused variable warnings
             // allocate memory
             allocator.allocateMemoryAndVerify();
 
             // force minor GC
             while (youngGCBean.getCollectionCount() <= initialGcId + MAX_TENURING_THRESHOLD * 2) {
+                @SuppressWarnings("unused")
                 byte b[] = new byte[ARRAY_LENGTH];
             }
 
             allocator.release();
             System.out.println(END_TEST);
    
< prev index next >