equal
deleted
inserted
replaced
30 * considered humongous when it allocates equals or more than one region. As |
30 * considered humongous when it allocates equals or more than one region. As |
31 * we're passing the size of byte array we need adjust it that entire structure |
31 * we're passing the size of byte array we need adjust it that entire structure |
32 * fits exactly to one region, if not - G1 will allocate another almost empty |
32 * fits exactly to one region, if not - G1 will allocate another almost empty |
33 * region as a continue of humongous. Thus we will exhaust memory very fast and |
33 * region as a continue of humongous. Thus we will exhaust memory very fast and |
34 * test will fail with OOME. |
34 * test will fail with OOME. |
|
35 * @requires vm.hasJFR |
35 * @requires vm.gc == "null" | vm.gc == "G1" |
36 * @requires vm.gc == "null" | vm.gc == "G1" |
36 * @library /test/lib /test/jdk |
37 * @library /test/lib /test/jdk |
37 * @run main/othervm -XX:+UseG1GC -XX:MaxNewSize=5m -Xmx256m -XX:G1HeapRegionSize=1048576 jdk.jfr.event.gc.detailed.TestStressBigAllocationGCEventsWithG1 1048544 |
38 * @run main/othervm -XX:+UseG1GC -XX:MaxNewSize=5m -Xmx256m -XX:G1HeapRegionSize=1048576 jdk.jfr.event.gc.detailed.TestStressBigAllocationGCEventsWithG1 1048544 |
38 */ |
39 */ |
39 public class TestStressBigAllocationGCEventsWithG1 { |
40 public class TestStressBigAllocationGCEventsWithG1 { |