equal
deleted
inserted
replaced
33 * @bug 4950157 |
33 * @bug 4950157 |
34 * @summary Stress the behavior of ergonomics when the heap is nearly full and |
34 * @summary Stress the behavior of ergonomics when the heap is nearly full and |
35 * stays nearly full. |
35 * stays nearly full. |
36 * @run main/othervm |
36 * @run main/othervm |
37 * -XX:+UseConcMarkSweepGC -XX:-CMSYield -XX:-CMSPrecleanRefLists1 |
37 * -XX:+UseConcMarkSweepGC -XX:-CMSYield -XX:-CMSPrecleanRefLists1 |
38 * -XX:CMSInitiatingOccupancyFraction=0 -Xmx8m TestBubbleUpRef 16000 50 10000 |
38 * -XX:CMSInitiatingOccupancyFraction=0 -Xmx80m TestBubbleUpRef 16000 50 10000 |
39 */ |
39 */ |
40 |
40 |
41 /** |
41 /** |
42 * Test program to stress the behavior of ergonomics when the |
42 * Test program to stress the behavior of ergonomics when the |
43 * heap is nearly full and stays nearly full. |
43 * heap is nearly full and stays nearly full. |
51 * System.gc() in the hopes that it will acquire the collection |
51 * System.gc() in the hopes that it will acquire the collection |
52 * Free the weak references |
52 * Free the weak references |
53 * Do it again. |
53 * Do it again. |
54 * |
54 * |
55 * Use the following VM options |
55 * Use the following VM options |
56 * -Xmx8m -XX:-CMSYield [-XX:+UseConcMarkSweepGC] -XX:-CMSPrecleanRefLists1 |
56 * -Xmx80m -XX:-CMSYield [-XX:+UseConcMarkSweepGC] -XX:-CMSPrecleanRefLists1 |
57 * -XX:CMSInitiatingOccupancyFraction=0 |
57 * -XX:CMSInitiatingOccupancyFraction=0 |
58 * |
58 * |
59 * Use parameter: |
59 * Use parameter: |
60 * args[0] - array size (16000) |
60 * args[0] - array size (16000) |
61 * args[1] - iterations (50) |
61 * args[1] - iterations (50) |