test/jdk/jdk/jfr/event/gc/detailed/TestPromotionEventWithG1.java
changeset 51214 67736b4846a0
parent 50113 caf115bb98ad
child 52309 3b6680f7542f
equal deleted inserted replaced
51213:24c4780f69a5 51214:67736b4846a0
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 package jdk.jfr.event.gc.detailed;
    25 package jdk.jfr.event.gc.detailed;
    26 
    26 
    27 /*
    27 /**
    28  * @test
    28  * @test
    29  * @key jfr
    29  * @key jfr
    30  * @summary Test that events are created when an object is aged or promoted during a GC and the copying of the object requires a new PLAB or direct heap allocation
    30  * @summary Test that events are created when an object is aged or promoted during a GC and the copying of the object requires a new PLAB or direct heap allocation
       
    31  * @requires vm.hasJFR
    31  *
    32  *
    32  * @requires (vm.gc == "G1" | vm.gc == null)
    33  * @requires (vm.gc == "G1" | vm.gc == null)
    33  *           & vm.opt.ExplicitGCInvokesConcurrent != true
    34  *           & vm.opt.ExplicitGCInvokesConcurrent != true
    34  * @library /test/lib /test/jdk
    35  * @library /test/lib /test/jdk
    35  * @run main/othervm -Xmx32m -Xms32m -Xmn12m -XX:+UseG1GC -XX:-UseStringDeduplication -XX:MaxTenuringThreshold=5 -XX:InitialTenuringThreshold=5
    36  * @run main/othervm -Xmx32m -Xms32m -Xmn12m -XX:+UseG1GC -XX:-UseStringDeduplication -XX:MaxTenuringThreshold=5 -XX:InitialTenuringThreshold=5