test/runtime/InitialThreadOverflow/testme.sh

Mon, 28 Jul 2014 15:06:38 -0700

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 6133
e567d5afd4dd
child 6876
710a3c8b516e
child 7893
a5b77ac78ad2
permissions
-rw-r--r--

8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Summary: call rtm_deopt() only if there were no compilation bailouts before.
Reviewed-by: kvn

     1 #!/bin/sh
     3 # Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     8 # published by the Free Software Foundation.
     9 #
    10 # This code is distributed in the hope that it will be useful, but WITHOUT
    11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    13 # version 2 for more details (a copy is included in the LICENSE file that
    14 # accompanied this code).
    15 #
    16 # You should have received a copy of the GNU General Public License version
    17 # 2 along with this work; if not, write to the Free Software Foundation,
    18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    19 #
    20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21 # or visit www.oracle.com if you need additional information or have any
    22 # questions.
    24 # @ignore 8029139
    25 # @test testme.sh
    26 # @bug 8009062
    27 # @summary Poor performance of JNI AttachCurrentThread after fix for 7017193
    28 # @compile DoOverflow.java
    29 # @run shell testme.sh
    31 set -x
    32 if [ "${TESTSRC}" = "" ]
    33 then
    34   TESTSRC=${PWD}
    35   echo "TESTSRC not set.  Using "${TESTSRC}" as default"
    36 fi
    37 echo "TESTSRC=${TESTSRC}"
    38 ## Adding common setup Variables for running shell tests.
    39 . ${TESTSRC}/../../test_env.sh
    41 if [ "${VM_OS}" != "linux" ]
    42 then
    43   echo "Test only valid for Linux"
    44   exit 0
    45 fi
    47 gcc_cmd=`which g++`
    48 if [ "x$gcc_cmd" = "x" ]; then
    49     echo "WARNING: g++ not found. Cannot execute test." 2>&1
    50     exit 0;
    51 fi
    53 CFLAGS="-m${VM_BITS}"
    55 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${VM_CPU}/${VM_TYPE}:/usr/lib:$LD_LIBRARY_PATH
    56 export LD_LIBRARY_PATH
    58 cp ${TESTSRC}${FS}invoke.cxx .
    60 # Copy the result of our @compile action:
    61 cp ${TESTCLASSES}${FS}DoOverflow.class .
    63 echo "Compilation flag: ${COMP_FLAG}"
    64 # Note pthread may not be found thus invoke creation will fail to be created.
    65 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look
    66 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation.
    68 $gcc_cmd -DLINUX ${CFLAGS} -o invoke \
    69     -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \
    70     -L${COMPILEJAVA}/jre/lib/${VM_CPU}/${VM_TYPE} \
    71     -ljvm -lpthread invoke.cxx
    73 ./invoke
    74 exit $?

mercurial