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 /* stress testing
25 Redthreads keep removing new nodes from a binary sort tree(
26 all nodes of its left subtree is less than itself, all nodes
27 of its right subtree is large than itself).
28 Bluethreads keep adding nodes into the binary sort tree.
29 YellowThreads search the binary sort tree.
30 The nodes removed from the tree will become garbages immediately
31 Create 10 Redthreads and 10 Bluethreads to manipulate the
32 the same binary tree involving excessive memory allocation
33 to test if memory management module and gc() crash.
34 */
35
36
37 /*
38 * @test
39 * @key gc
40 *
41 * @summary converted from VM Testbase gc/gctests/gctest03.
42 * VM Testbase keywords: [gc]
43 *
44 * @library /vmTestbase
45 * /test/lib
46 * @run driver jdk.test.lib.FileInstaller . .
47 * @compile Tree.java appthread.java
48 * @run main/othervm gc.gctests.gctest03.gctest03 10000
49 */
50
51 package gc.gctests.gctest03;
52
53 import nsk.share.test.*;
54 import nsk.share.gc.*;
55 import nsk.share.TestFailure;
56 import nsk.share.TestBug;
57
58 //import Tree;
59 //import Redthread;
|
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 /* stress testing
25 Redthreads keep removing new nodes from a binary sort tree(
26 all nodes of its left subtree is less than itself, all nodes
27 of its right subtree is large than itself).
28 Bluethreads keep adding nodes into the binary sort tree.
29 YellowThreads search the binary sort tree.
30 The nodes removed from the tree will become garbages immediately
31 Create 10 Redthreads and 10 Bluethreads to manipulate the
32 the same binary tree involving excessive memory allocation
33 to test if memory management module and gc() crash.
34 */
35
36
37 /*
38 * @test
39 * @key gc randomness
40 *
41 * @summary converted from VM Testbase gc/gctests/gctest03.
42 * VM Testbase keywords: [gc]
43 *
44 * @library /vmTestbase
45 * /test/lib
46 * @run driver jdk.test.lib.FileInstaller . .
47 * @compile Tree.java appthread.java
48 * @run main/othervm gc.gctests.gctest03.gctest03 10000
49 */
50
51 package gc.gctests.gctest03;
52
53 import nsk.share.test.*;
54 import nsk.share.gc.*;
55 import nsk.share.TestFailure;
56 import nsk.share.TestBug;
57
58 //import Tree;
59 //import Redthread;
|