Deadlock2.sh revision 2362
2362N/A# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 1043N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1043N/A# This code is free software; you can redistribute it and/or modify it 1043N/A# under the terms of the GNU General Public License version 2 only, as 1043N/A# published by the Free Software Foundation. 1043N/A# This code is distributed in the hope that it will be useful, but WITHOUT 1043N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1043N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1043N/A# version 2 for more details (a copy is included in the LICENSE file that 1043N/A# You should have received a copy of the GNU General Public License version 1043N/A# 2 along with this work; if not, write to the Free Software Foundation, 1043N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1153N/A# @ignore until 6203816 is dealt with. 1043N/A# @summary make sure we do not deadlock between ExtClassLoader and AppClassLoader 1043N/A# set a few environment variables so that the shell-script can run stand-alone 1043N/Aif [
"${TESTSRC}" =
"" ] ;
then 1043N/Aif [
"${TESTCLASSES}" =
"" ] ;
then 1043N/Aif [
"${TESTJAVA}" =
"" ] ;
then 1043N/A echo "TESTJAVA not set. Test cannot execute." 1043N/A# set platform-dependent variables 1043N/A echo "Unrecognized system!" 1043N/A# compile and package the test program 1043N/A# create serialized object and run the test