hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2CompiledTest.java
author tpivovarova
Tue, 12 Jul 2016 18:24:48 +0300
changeset 40059 c2304140ed64
parent 38152 80e5da81fb2c
child 40631 ed82623d7831
permissions -rw-r--r--
8132919: Put compiler tests in packages Reviewed-by: vlivanov, dpochepk Contributed-by: igor.ignatyev@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35128
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     1
/*
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     4
 *
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     7
 * published by the Free Software Foundation.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     8
 *
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    13
 * accompanied this code).
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    14
 *
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    18
 *
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    21
 * questions.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    22
 */
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    23
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    24
/*
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    25
 * @test
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    26
 * @summary check calls from compiled to compiled using InvokeSpecial
38152
80e5da81fb2c 8154258: [TESTBUG] Various serviceability tests fail compilation
dsamersoff
parents: 35128
diff changeset
    27
 * @modules java.base/jdk.internal.misc
35128
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    28
 * @library /test/lib /testlibrary /
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 38152
diff changeset
    29
 *
35128
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    30
 * @build compiler.calls.common.InvokeSpecial
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    31
 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    32
 *    sun.hotspot.WhiteBox$WhiteBoxPermission
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    33
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    34
 *    -Xbatch compiler.calls.common.InvokeSpecial
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    35
 *    -compileCaller 1 -checkCallerCompileLevel 1 -compileCallee 1 -checkCalleeCompileLevel 1
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    36
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    37
 *    -Xbatch compiler.calls.common.InvokeSpecial
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    38
 *    -compileCaller 1 -checkCallerCompileLevel 1 -compileCallee 4 -checkCalleeCompileLevel 4
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    39
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    40
 *    -Xbatch compiler.calls.common.InvokeSpecial
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    41
 *    -compileCaller 4 -checkCallerCompileLevel 4 -compileCallee 1 -checkCalleeCompileLevel 1
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    42
 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    43
 *    -Xbatch compiler.calls.common.InvokeSpecial
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    44
 *    -compileCaller 4 -checkCallerCompileLevel 4 -compileCallee 4 -checkCalleeCompileLevel 4
bb8baf284c67 8141351: Create tests for direct invoke instructions testing
dpochepk
parents:
diff changeset
    45
 */