4248N/A * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 3577N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3577N/A * This code is free software; you can redistribute it and/or modify it 3577N/A * under the terms of the GNU General Public License version 2 only, as 3577N/A * published by the Free Software Foundation. 3577N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3577N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3577N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3577N/A * version 2 for more details (a copy is included in the LICENSE file that 3577N/A * You should have received a copy of the GNU General Public License version 3577N/A * 2 along with this work; if not, write to the Free Software Foundation, 3577N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3577N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3577N/A * or visit www.oracle.com if you need additional information or have any 3577N/A * ------------------------------------------- 3577N/A * Portions Copyright (c) 2010, 2011 IBM Corporation 3577N/A * @summary Serializing Hashtable objects which refer to each other should not be able to deadlock. 3577N/A * @author Neil Richards <neil.richards@ngmr.net>, <neil_richards@uk.ibm.com> 3577N/A // Test for Hashtable serialization deadlock 3577N/A // Populate the hashtables so that they refer to each other 3577N/A // Wait for both test threads to have initiated serialization 3577N/A // of the 'testStart' object (and hence of both 'h1' and 'h2') 3577N/A // Wait for both test threads to successfully finish serialization 3577N/A // Wait until all test threads have started serializing data 3577N/A pw.
println(
"Test ERROR: Unexpected exceptions thrown on test threads:");