##
## @test Test6929067.sh
## @bug 6929067
## @summary Stack guard pages should be removed when thread is detached
## @compile T.java
## @run shell Test6929067.sh
##
set -x
if [ "${TESTSRC}" = "" ]
then
fi
echo "TESTSRC=${TESTSRC}"
## Adding common setup Variables for running shell tests.
. ${TESTSRC}/../../test_env.sh
# set platform-dependent variables
PS=":"
FS="/"
;;
* )
echo "Test passed; only valid for Linux"
exit 0;
;;
esac
# Bitness:
# Cannot simply look at TESTVMOPTS as -d64 is not
# passed if there is only a 64-bit JVM available.
if [ "$?" = "0" ]
then
COMP_FLAG="-m64"
else
COMP_FLAG="-m32"
fi
# Architecture:
# Translate uname output to JVM directory name, but permit testing
# 32-bit x86 on an x64 platform.
if [ "$COMP_FLAG" = "-m32" ]; then
else
fi
;;
if [ "$COMP_FLAG" = "-m32" ]; then
else
fi
;;
if [ "$COMP_FLAG" = "-m32" ]; then
else
fi
;;
arm*)
# 32-bit ARM machine: compiler may not recognise -m32
COMP_FLAG=""
;;
# 64-bit arm machine, could be testing 32 or 64-bit:
if [ "$COMP_FLAG" = "-m32" ]; then
else
fi
;;
i586)
;;
i686)
;;
# Assuming other ARCH values need no translation
esac
# VM type: need to know server or client
if [ "$?" = "0" ]
then
fi
export LD_LIBRARY_PATH
# Copy the result of our @compile action:
echo "Architecture: ${ARCH}"
echo "Compilation flag: ${COMP_FLAG}"
echo "VM type: ${VMTYPE}"
# Note pthread may not be found thus invoke creation will fail to be created.
# Check to ensure you have a /usr/lib/libpthread.so if you don't please look
./invoke
exit $?