test/compiler/ciReplay/common.sh
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8014068 Cdiff test/compiler/ciReplay/common.sh
test/compiler/ciReplay/common.sh
Print this page
*** 180,191 ****
--- 180,194 ----
echo "is_tiered=$is_tiered"
# crash vm in compiler thread with generation replay data and 'small' dump-file
# $@ - additional vm opts
generate_replay() {
+ if [ $VM_OS != "windows" ]
+ then
# enable core dump
ulimit -c unlimited
+ fi
cmd="${JAVA} ${TESTVMOPTS} $@ \
-Xms8m \
-Xmx32m \
-XX:MetaspaceSize=4m \
*** 210,236 ****
core_locations=`grep -i core crash.out | grep "location:" | \
sed -e 's/.*location: //'`
rm crash.out
# processing core locations for *nix
! if [ $OS != "windows" ]
then
# remove 'or' between '/core.<pid>' and 'core'
core_locations=`echo $core_locations | \
sed -e 's/\([^ ]*\) or \([^ ]*\)/\1 \2/'`
# add <core_path>/core.<pid> core.<pid>
! core=`echo $core_locations | awk '{print $1}'`
! dir=`dirname $core`
! core=`basename $core`
! if [ -n ${core} ]
! then
! core_locations="$core_locations $dir${FS}$core"
! fi
! core=`echo $core_locations | awk '{print $2}'`
! if [ -n ${core} ]
then
! core_locations="$core_locations $dir${FS}$core"
fi
fi
echo "LOOKING FOR CORE IN ${core_locations}"
for core in $core_locations
--- 213,234 ----
core_locations=`grep -i core crash.out | grep "location:" | \
sed -e 's/.*location: //'`
rm crash.out
# processing core locations for *nix
! if [ $VM_OS != "windows" ]
then
# remove 'or' between '/core.<pid>' and 'core'
core_locations=`echo $core_locations | \
sed -e 's/\([^ ]*\) or \([^ ]*\)/\1 \2/'`
# add <core_path>/core.<pid> core.<pid>
! core_with_dir=`echo $core_locations | awk '{print $1}'`
! dir=`dirname $core_with_dir`
! core_with_pid=`echo $core_locations | awk '{print $2}'`
! if [ -n ${core_with_pid} ]
then
! core_locations="$core_locations $dir${FS}$core_with_pid $core_with_pid"
fi
fi
echo "LOOKING FOR CORE IN ${core_locations}"
for core in $core_locations
test/compiler/ciReplay/common.sh
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File