test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree008/btree008.java
author mseledtsov
Wed, 16 May 2018 16:43:11 -0700
changeset 50154 d2d6bc39ea88
permissions -rw-r--r--
8199252: [TESTBUG] Open source VM testbase system dictionary tests Summary: Opensourced the tests Reviewed-by: iignatyev, gziemski
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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/btree/btree008.
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
 *     Single thread loads a tree of classes with signle loader.
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    34
 *     Then, memory stress is induced to unload the classes.
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    35
 *     The test is deemed failed if loading attempt fails;
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    36
 *     or if the tested VM crashes.
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    37
 *     The test repeats until the given number of iterations,
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    38
 *     or until a timeout.
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    39
 *
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    40
 * @library /vmTestbase /test/lib
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    41
 * @comment btree classes import nsk.sysdict.share.*
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    42
 * @build nsk.sysdict.share.*
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    43
 * @comment build btree.jar
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    44
 * @run driver nsk.sysdict.share.GenClassesBuilder btree
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    45
 * @comment build fats.jar
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    46
 * @run driver nsk.sysdict.share.GenClassesBuilder fats
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    47
 * @run driver jdk.test.lib.FileInstaller . .
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    48
 * @build nsk.sysdict.share.BTreeTest
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    49
 * @run main/othervm
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    50
 *      -XX:-UseGCOverheadLimit
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    51
 *      PropertyResolvingWrapper
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    52
 *      nsk.sysdict.share.BTreeTest
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    53
 *      -jarpath btree.jar${path.separator}fats.jar
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    54
 *      -useSingleLoader
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    55
 *      -stressHeap
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    56
 */
d2d6bc39ea88 8199252: [TESTBUG] Open source VM testbase system dictionary tests
mseledtsov
parents:
diff changeset
    57