Mon, 28 Jul 2014 15:06:38 -0700
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
kvn@3132 | 1 | #!/bin/sh |
kvn@3132 | 2 | # |
mikael@6198 | 3 | # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
kvn@3132 | 4 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
kvn@3132 | 5 | # |
kvn@3132 | 6 | # This code is free software; you can redistribute it and/or modify it |
kvn@3132 | 7 | # under the terms of the GNU General Public License version 2 only, as |
kvn@3132 | 8 | # published by the Free Software Foundation. |
kvn@3132 | 9 | # |
kvn@3132 | 10 | # This code is distributed in the hope that it will be useful, but WITHOUT |
kvn@3132 | 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
kvn@3132 | 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
kvn@3132 | 13 | # version 2 for more details (a copy is included in the LICENSE file that |
kvn@3132 | 14 | # accompanied this code). |
kvn@3132 | 15 | # |
kvn@3132 | 16 | # You should have received a copy of the GNU General Public License version |
kvn@3132 | 17 | # 2 along with this work; if not, write to the Free Software Foundation, |
kvn@3132 | 18 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
kvn@3132 | 19 | # |
kvn@3132 | 20 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
kvn@3132 | 21 | # or visit www.oracle.com if you need additional information or have any |
kvn@3132 | 22 | # questions. |
kvn@3132 | 23 | # |
kvn@3132 | 24 | # |
collins@4831 | 25 | ## some tests require path to find test source dir |
kvn@3132 | 26 | if [ "${TESTSRC}" = "" ] |
kvn@3132 | 27 | then |
collins@4831 | 28 | TESTSRC=${PWD} |
collins@4831 | 29 | echo "TESTSRC not set. Using "${TESTSRC}" as default" |
kvn@3132 | 30 | fi |
kvn@3132 | 31 | echo "TESTSRC=${TESTSRC}" |
collins@4831 | 32 | ## Adding common setup Variables for running shell tests. |
collins@4831 | 33 | . ${TESTSRC}/../../test_env.sh |
kvn@3132 | 34 | |
kvn@3132 | 35 | set -x |
kvn@3132 | 36 | |
collins@4831 | 37 | ${COMPILEJAVA}/bin/jar xf ${COMPILEJAVA}/jre/lib/javaws.jar |
collins@4831 | 38 | ${COMPILEJAVA}/bin/jar cf foo.jar * |
kvn@3132 | 39 | cp ${TESTSRC}/Test7068051.java ./ |
collins@4831 | 40 | ${COMPILEJAVA}/bin/jar -uf0 foo.jar Test7068051.java |
kvn@3132 | 41 | |
collins@4831 | 42 | ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test7068051.java |
kvn@3132 | 43 | |
collins@4684 | 44 | ${TESTJAVA}/bin/java ${TESTVMOPTS} -showversion -Xbatch Test7068051 foo.jar |
kvn@3132 | 45 |