Mercurial > hg > truffle
comparison test/runtime/6929067/Test6929067.sh @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 5e7eb4244604 |
children |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 ## | 3 ## |
4 ## @ignore 8028740 | |
4 ## @test Test6929067.sh | 5 ## @test Test6929067.sh |
5 ## @bug 6929067 | 6 ## @bug 6929067 |
6 ## @bug 8021296 | 7 ## @bug 8021296 |
7 ## @bug 8025519 | |
8 ## @summary Stack guard pages should be removed when thread is detached | 8 ## @summary Stack guard pages should be removed when thread is detached |
9 ## @compile T.java | |
9 ## @run shell Test6929067.sh | 10 ## @run shell Test6929067.sh |
10 ## | 11 ## |
11 | 12 set -x |
12 if [ "${TESTSRC}" = "" ] | 13 if [ "${TESTSRC}" = "" ] |
13 then | 14 then |
14 TESTSRC=${PWD} | 15 TESTSRC=${PWD} |
15 echo "TESTSRC not set. Using "${TESTSRC}" as default" | 16 echo "TESTSRC not set. Using "${TESTSRC}" as default" |
16 fi | 17 fi |
111 | 112 |
112 | 113 |
113 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH | 114 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH |
114 export LD_LIBRARY_PATH | 115 export LD_LIBRARY_PATH |
115 | 116 |
116 cp ${TESTSRC}${FS}*.java ${THIS_DIR} | 117 cp ${TESTSRC}${FS}invoke.c . |
117 ${COMPILEJAVA}${FS}bin${FS}javac *.java | 118 |
119 # Copy the result of our @compile action: | |
120 cp ${TESTCLASSES}${FS}T.class . | |
118 | 121 |
119 echo "Architecture: ${ARCH}" | 122 echo "Architecture: ${ARCH}" |
120 echo "Compilation flag: ${COMP_FLAG}" | 123 echo "Compilation flag: ${COMP_FLAG}" |
121 echo "VM type: ${VMTYPE}" | 124 echo "VM type: ${VMTYPE}" |
122 # Note pthread may not be found thus invoke creation will fail to be created. | 125 # Note pthread may not be found thus invoke creation will fail to be created. |
124 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. | 127 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. |
125 | 128 |
126 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ | 129 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ |
127 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ | 130 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ |
128 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ | 131 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ |
129 ${TESTSRC}${FS}invoke.c -ljvm -lpthread | 132 -ljvm -lpthread invoke.c |
130 | 133 |
131 ./invoke | 134 ./invoke |
132 exit $? | 135 exit $? |