equal
deleted
inserted
replaced
40 * @test |
40 * @test |
41 * @summary Test that when an object is allocated outside a TLAB an event will be triggered. |
41 * @summary Test that when an object is allocated outside a TLAB an event will be triggered. |
42 * @key jfr |
42 * @key jfr |
43 * @requires vm.hasJFR |
43 * @requires vm.hasJFR |
44 * @library /test/lib |
44 * @library /test/lib |
45 * @run main/othervm -XX:+UseTLAB -XX:-FastTLABRefill -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256 jdk.jfr.event.compiler.TestAllocOutsideTLAB |
45 * @run main/othervm -XX:+UseTLAB -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256 jdk.jfr.event.compiler.TestAllocOutsideTLAB |
46 * @run main/othervm -XX:+UseTLAB -XX:-FastTLABRefill -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256 jdk.jfr.event.compiler.TestAllocOutsideTLAB |
46 * @run main/othervm -XX:+UseTLAB -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256 -Xint jdk.jfr.event.compiler.TestAllocOutsideTLAB |
47 * @run main/othervm -XX:+UseTLAB -XX:-FastTLABRefill -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256 -Xint jdk.jfr.event.compiler.TestAllocOutsideTLAB |
|
48 */ |
47 */ |
49 |
48 |
50 /** |
49 /** |
51 * Test that an event is triggered when an object is allocated outside a |
50 * Test that an event is triggered when an object is allocated outside a |
52 * Thread Local Allocation Buffer (TLAB). The test is done for C1-compiler, |
51 * Thread Local Allocation Buffer (TLAB). The test is done for default interpreted mode (-Xint). |
53 * C2-compiler (-XX:-FastTLABRefill) and interpreted mode (-Xint). |
|
54 * |
52 * |
55 * To force objects to be allocated outside TLAB: |
53 * To force objects to be allocated outside TLAB: |
56 * the size of TLAB is set to 90k (-XX:TLABSize=90k); |
54 * the size of TLAB is set to 90k (-XX:TLABSize=90k); |
57 * the size of allocated objects is set to 100k. |
55 * the size of allocated objects is set to 100k. |
58 * max TLAB waste at refill is set to 256 (-XX:TLABRefillWasteFraction=256), |
56 * max TLAB waste at refill is set to 256 (-XX:TLABRefillWasteFraction=256), |