< prev index next >

test/gc/g1/TestEagerReclaimHumongousRegionsWithRefs.java

Print this page

        

*** 28,48 **** * been referenced by other old gen regions work. We simply try to fill * up the heap with humongous objects and create a remembered set entry from an object by * referencing that we know is in the old gen. After changing this reference, the object * should still be eagerly reclaimable to avoid Full GC. * @key gc ! * @library /testlibrary * @modules java.base/jdk.internal.misc * java.management */ import java.util.regex.Pattern; import java.util.regex.Matcher; import java.util.LinkedList; ! import jdk.test.lib.OutputAnalyzer; ! import jdk.test.lib.ProcessTools; import static jdk.test.lib.Asserts.*; class RefHolder { Object ref; } --- 28,48 ---- * been referenced by other old gen regions work. We simply try to fill * up the heap with humongous objects and create a remembered set entry from an object by * referencing that we know is in the old gen. After changing this reference, the object * should still be eagerly reclaimable to avoid Full GC. * @key gc ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.management */ import java.util.regex.Pattern; import java.util.regex.Matcher; import java.util.LinkedList; ! import jdk.test.lib.process.OutputAnalyzer; ! import jdk.test.lib.process.ProcessTools; import static jdk.test.lib.Asserts.*; class RefHolder { Object ref; }
< prev index next >