test/compiler/ciReplay/TestVM.sh

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

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 6354
d64ae45dbce9
child 6876
710a3c8b516e
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

iignatyev@5029 1 #!/bin/sh
iignatyev@5029 2 #
iignatyev@5029 3 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
iignatyev@5029 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
iignatyev@5029 5 #
iignatyev@5029 6 # This code is free software; you can redistribute it and/or modify it
iignatyev@5029 7 # under the terms of the GNU General Public License version 2 only, as
iignatyev@5029 8 # published by the Free Software Foundation.
iignatyev@5029 9 #
iignatyev@5029 10 # This code is distributed in the hope that it will be useful, but WITHOUT
iignatyev@5029 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
iignatyev@5029 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
iignatyev@5029 13 # version 2 for more details (a copy is included in the LICENSE file that
iignatyev@5029 14 # accompanied this code).
iignatyev@5029 15 #
iignatyev@5029 16 # You should have received a copy of the GNU General Public License version
iignatyev@5029 17 # 2 along with this work; if not, write to the Free Software Foundation,
iignatyev@5029 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
iignatyev@5029 19 #
iignatyev@5029 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
iignatyev@5029 21 # or visit www.oracle.com if you need additional information or have any
iignatyev@5029 22 # questions.
iignatyev@5029 23 #
iignatyev@5029 24 #
iignatyev@5029 25
iignatyev@5029 26 ##
iignatyev@5029 27 ## @test
iignatyev@5029 28 ## @bug 8011675
iignatyev@5029 29 ## @summary testing of ciReplay with using generated by VM replay.txt
iignatyev@5029 30 ## @author igor.ignatyev@oracle.com
iignatyev@5029 31 ## @run shell TestVM.sh
iignatyev@5029 32 ##
iignatyev@5029 33
iignatyev@5029 34 if [ "${TESTSRC}" = "" ]
iignatyev@5029 35 then
iignatyev@5029 36 TESTSRC=${PWD}
iignatyev@5029 37 echo "TESTSRC not set. Using "${TESTSRC}" as default"
iignatyev@5029 38 fi
iignatyev@5029 39 echo "TESTSRC=${TESTSRC}"
iignatyev@5029 40
iignatyev@5029 41 ## Adding common setup Variables for running shell tests.
iignatyev@5029 42 . ${TESTSRC}/../../test_env.sh
iignatyev@5029 43
iignatyev@5029 44 . ${TESTSRC}/common.sh
iignatyev@5029 45
iignatyev@5029 46 generate_replay
iignatyev@5029 47
iignatyev@5029 48 if [ ! -s ${replay_data} ]
iignatyev@5029 49 then
iignatyev@5029 50 test_fail 1 "CHECK :: REPLAY DATA GENERATION" \
iignatyev@5029 51 "replay data wasn't generated by VM"
iignatyev@5029 52 fi
iignatyev@5029 53
iignatyev@5029 54 common_tests 10
iignatyev@5029 55 ${VM_TYPE}_tests 20
iignatyev@5029 56
iignatyev@5029 57 cleanup
iignatyev@5029 58
iignatyev@5029 59 if [ $is_tiered -eq 1 ]
iignatyev@5029 60 then
iignatyev@5029 61 stop_level=1
iignatyev@5029 62 while [ $stop_level -le $server_level ]
iignatyev@5029 63 do
iignatyev@5029 64 generate_replay "-XX:TieredStopAtLevel=$stop_level"
iignatyev@5029 65 if [ ! -s ${replay_data} ]
iignatyev@5029 66 then
iignatyev@5029 67 test_fail `expr $stop_level + 30` \
iignatyev@5029 68 "TIERED LEVEL $stop_level :: REPLAY DATA GENERATION" \
iignatyev@5029 69 "replay data wasn't generated by VM with stop_level=$stop_level"
iignatyev@5029 70 fi
iignatyev@5029 71 level=`grep "^compile " $replay_data | awk '{print $6}'`
iignatyev@5029 72 if [ $level -gt $stop_level ]
iignatyev@5029 73 then
iignatyev@5029 74 test_fail `expr $stop_level + 40` \
iignatyev@5029 75 "TIERED LEVEL $stop_level :: COMP_LEVEL VERIFICATION" \
iignatyev@5029 76 "comp_level in replay[$level] is greater than stop_level[$stop_level]"
iignatyev@5029 77 fi
iignatyev@5029 78 positive_test `expr $stop_level + 50` "TIERED LEVEL $stop_level :: REPLAY" \
iignatyev@5029 79 "-XX:TieredStopAtLevel=$stop_level"
iignatyev@5029 80 stop_level=`expr $stop_level + 1`
iignatyev@6354 81 cleanup
iignatyev@5029 82 done
iignatyev@5029 83 fi
iignatyev@5029 84
iignatyev@5029 85 echo TEST PASSED
iignatyev@5029 86

mercurial