Mercurial > hg > graal-compiler
comparison test/compiler/ciReplay/common.sh @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 4c241e42a3e4 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
194 generate_replay() { | 194 generate_replay() { |
195 if [ $VM_OS != "windows" ] | 195 if [ $VM_OS != "windows" ] |
196 then | 196 then |
197 # enable core dump | 197 # enable core dump |
198 ulimit -c unlimited | 198 ulimit -c unlimited |
199 new_ulimit=`ulimit -c` | |
200 if [ $new_ulimit != "unlimited" -a $new_ulimit != "-1" ] | |
201 then | |
202 test_fail 2 "CHECK :: ULIMIT" "Could not set 'ulimit -c unlimited'. 'ulimit -c' returns : $new_ulimit" | |
203 fi | |
204 | 199 |
205 if [ $VM_OS = "solaris" ] | 200 if [ $VM_OS = "solaris" ] |
206 then | 201 then |
207 coreadm -p core $$ | 202 coreadm -p core $$ |
208 fi | 203 fi |
231 | 226 |
232 ${cmd} > crash.out 2>&1 | 227 ${cmd} > crash.out 2>&1 |
233 | 228 |
234 core_locations=`grep -i core crash.out | grep "location:" | \ | 229 core_locations=`grep -i core crash.out | grep "location:" | \ |
235 sed -e 's/.*location: //'` | 230 sed -e 's/.*location: //'` |
236 echo CRASH OUTPUT: | |
237 cat crash.out | |
238 rm crash.out | 231 rm crash.out |
239 | |
240 # processing core locations for *nix | 232 # processing core locations for *nix |
241 if [ $VM_OS != "windows" ] | 233 if [ $VM_OS != "windows" ] |
242 then | 234 then |
243 # remove 'or' between '/core.<pid>' and 'core' | 235 # remove 'or' between '/core.<pid>' and 'core' |
244 core_locations=`echo $core_locations | \ | 236 core_locations=`echo $core_locations | \ |