test/gc/g1/TestShrinkDefragmentedHeap.java
Print this page
rev 7249 : 8062537: [TESTBUG] Conflicting GC combinations in hotspot tests
*** 22,31 ****
--- 22,32 ----
*/
/**
* @test TestShrinkDefragmentedHeap
* @bug 8038423
+ * @requires vm.gc=="G1" | vm.gc=="null"
* @summary Verify that heap shrinks after GC in the presence of fragmentation due to humongous objects
* 1. allocate small objects mixed with humongous ones
* "ssssHssssHssssHssssHssssHssssHssssH"
* 2. release all allocated object except the last humongous one
* "..................................H"