author | mseledtsov |
Wed, 16 May 2018 16:43:11 -0700 | |
changeset 50154 | d2d6bc39ea88 |
permissions | -rw-r--r-- |
50154
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
1 |
/* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
2 |
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
4 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
8 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
13 |
* accompanied this code). |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
14 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
18 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
21 |
* questions. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
22 |
*/ |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
23 |
|
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
24 |
|
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
25 |
/* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
26 |
* @test |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
27 |
* @key stress |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
28 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
29 |
* @summary converted from VM Testbase nsk/sysdict/vm/stress/chain/chain007. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
30 |
* VM Testbase keywords: [stress, sysdict, stressopt, nonconcurrent] |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
31 |
* VM Testbase readme: |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
32 |
* DESCRIPTION |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
33 |
* Multiple threads load a long chain of lean classes |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
34 |
* with a short chain of loaders (NxM threads totally). |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
35 |
* Then, memory stress is induced to unload the classes. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
36 |
* The test is deemed failed if loading attempt fails; |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
37 |
* or if the tested VM crashes. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
38 |
* The test repeats until the given number of iterations, |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
39 |
* or until a timeout. |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
40 |
* |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
41 |
* @library /vmTestbase /test/lib |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
42 |
* @comment build fats.jar |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
43 |
* @run driver nsk.sysdict.share.GenClassesBuilder fats |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
44 |
* @comment build leans.jar |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
45 |
* @run driver nsk.sysdict.share.GenClassesBuilder leans |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
46 |
* @run driver jdk.test.lib.FileInstaller . . |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
47 |
* @build nsk.sysdict.share.ChainTest |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
48 |
* @run main/othervm |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
49 |
* -XX:-UseGCOverheadLimit |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
50 |
* PropertyResolvingWrapper |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
51 |
* nsk.sysdict.share.ChainTest |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
52 |
* -stressHeap |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
53 |
* -jarpath leans.jar${path.separator}fats.jar |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
54 |
*/ |
d2d6bc39ea88
8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff
changeset
|
55 |