16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test TestGCOld
26 * @key gc
27 * @key stress
28 * @requires vm.gc=="null"
29 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
30 * @run main/othervm -Xmx384M -XX:+UseSerialGC TestGCOld 50 1 20 10 10000
31 * @run main/othervm -Xmx384M -XX:+UseParallelGC TestGCOld 50 1 20 10 10000
32 * @run main/othervm -Xmx384M -XX:+UseParallelGC -XX:-UseParallelOldGC TestGCOld 50 1 20 10 10000
33 * @run main/othervm -Xmx384M -XX:+UseConcMarkSweepGC TestGCOld 50 1 20 10 10000
34 * @run main/othervm -Xmx384M -XX:+UseG1GC TestGCOld 50 1 20 10 10000
35 * @run main/othervm -Xms64m -Xmx128m -XX:+UseG1GC -XX:+UseDynamicNumberOfGCThreads -Xlog:gc,gc+task=trace TestGCOld 50 5 20 1 5000
36 */
37
38 import java.text.*;
39 import java.util.Random;
40
41 class TreeNode {
42 public TreeNode left, right;
43 public int val; // will always be the height of the tree
44 }
45
46
47 /* Args:
48 live-data-size: in megabytes (approximate, will be rounded down).
49 work: units of mutator non-allocation work per byte allocated,
50 (in unspecified units. This will affect the promotion rate
51 printed at the end of the run: more mutator work per step implies
52 fewer steps per second implies fewer bytes promoted per second.)
53 short/long ratio: ratio of short-lived bytes allocated to long-lived
54 bytes allocated.
55 pointer mutation rate: number of pointer mutations per step.
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test TestGCOld
26 * @key gc
27 * @key stress
28 * @requires vm.gc=="null"
29 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
30 * @run main/othervm -Xmx384M -XX:+UseSerialGC TestGCOld 50 1 20 10 10000
31 * @run main/othervm -Xmx384M -XX:+UseParallelGC TestGCOld 50 1 20 10 10000
32 * @run main/othervm -Xmx384M -XX:+UseParallelGC -XX:-UseParallelOldGC TestGCOld 50 1 20 10 10000
33 * @run main/othervm -Xmx384M -XX:+UseConcMarkSweepGC TestGCOld 50 1 20 10 10000
34 * @run main/othervm -Xmx384M -XX:+UseG1GC TestGCOld 50 1 20 10 10000
35 * @run main/othervm -Xms64m -Xmx128m -XX:+UseG1GC -XX:+UseDynamicNumberOfGCThreads -Xlog:gc,gc+task=trace TestGCOld 50 5 20 1 5000
36 * @run main/othervm -Xms64m -Xmx128m -XX:+UseG1GC -XX:+UseDynamicNumberOfGCThreads -XX:+UnlockDiagnosticVMOptions -XX:+InjectGCWorkerCreationFailure -Xlog:gc,gc+task=trace TestGCOld 50 5 20 1 5000
37 */
38
39 import java.text.*;
40 import java.util.Random;
41
42 class TreeNode {
43 public TreeNode left, right;
44 public int val; // will always be the height of the tree
45 }
46
47
48 /* Args:
49 live-data-size: in megabytes (approximate, will be rounded down).
50 work: units of mutator non-allocation work per byte allocated,
51 (in unspecified units. This will affect the promotion rate
52 printed at the end of the run: more mutator work per step implies
53 fewer steps per second implies fewer bytes promoted per second.)
54 short/long ratio: ratio of short-lived bytes allocated to long-lived
55 bytes allocated.
56 pointer mutation rate: number of pointer mutations per step.
|