Mercurial > hg > truffle
annotate test/compiler/6894807/Test6894807.sh @ 10988:cd54c7e92908
8015660: Test8009761.java "Failed: init recursive calls: 24. After deopt 25"
Summary: Windows reserves and only partially commits thread stack. For detecting more thread stack space for execution, Windows installs one-shot page as guard page just before the current commited edge. It will trigger STACK_OVERFLOW_EXCEPTION when lands on last 4 pages of thread stack space. StackYellowPages default value is 2 on Windows (plus 1 page of StackRedPages, 3 pages guarded by hotspot) so the exception happens one page before Yellow pages. Same route executed second time will have one more page brought in, this leads same execution with different stack depth(interpreter mode). We need match Windows settings so the stack overflow exception will not happen before Yellow pages.
Reviewed-by: dholmes
Contributed-by: andreas.schoesser@sap.com
author | minqi |
---|---|
date | Tue, 18 Jun 2013 09:08:35 -0700 |
parents | 83b6305a5638 |
children |
rev | line source |
---|---|
1715 | 1 #!/bin/sh |
2 | |
3 if [ "${TESTSRC}" = "" ] | |
4 then TESTSRC=. | |
5 fi | |
6 | |
7 if [ "${TESTJAVA}" = "" ] | |
8 then | |
9 PARENT=`dirname \`which java\`` | |
10 TESTJAVA=`dirname ${PARENT}` | |
11 echo "TESTJAVA not set, selecting " ${TESTJAVA} | |
12 echo "If this is incorrect, try setting the variable manually." | |
13 fi | |
14 | |
15 if [ "${TESTCLASSES}" = "" ] | |
16 then | |
17 echo "TESTCLASSES not set. Test cannot execute. Failed." | |
18 exit 1 | |
19 fi | |
20 | |
21 # set platform-dependent variables | |
22 OS=`uname -s` | |
23 case "$OS" in | |
6598
6acee021f5ac
7129723: MAC: Some regression tests need to recognize Mac OS X platform
coleenp
parents:
6074
diff
changeset
|
24 SunOS | Linux | Darwin ) |
1715 | 25 NULL=/dev/null |
26 PS=":" | |
27 FS="/" | |
28 ;; | |
29 Windows_* ) | |
30 NULL=NUL | |
31 PS=";" | |
32 FS="\\" | |
33 ;; | |
6635
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
34 CYGWIN_* ) |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
35 NULL=/dev/null |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
36 PS=";" |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
37 FS="/" |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
38 ;; |
1715 | 39 * ) |
40 echo "Unrecognized system!" | |
41 exit 1; | |
42 ;; | |
43 esac | |
44 | |
45 JEMMYPATH=${CPAPPEND} | |
46 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH | |
47 | |
48 THIS_DIR=`pwd` | |
49 | |
6074
037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
1715
diff
changeset
|
50 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
1715 | 51 |
6074
037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
1715
diff
changeset
|
52 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} IsInstanceTest > test.out 2>&1 |
1715 | 53 |
54 cat test.out | |
55 | |
56 grep "Failed at index" test.out | |
57 | |
58 if [ $? = 0 ] | |
59 then | |
60 echo "Test Failed" | |
61 exit 1 | |
62 else | |
63 echo "Test Passed" | |
64 exit 0 | |
65 fi |