1024N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1024N/A * This code is free software; you can redistribute it and/or modify it 1024N/A * under the terms of the GNU General Public License version 2 only, as 1024N/A * published by the Free Software Foundation. 1024N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1024N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1024N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1024N/A * version 2 for more details (a copy is included in the LICENSE file that 1024N/A * You should have received a copy of the GNU General Public License version 1024N/A * 2 along with this work; if not, write to the Free Software Foundation, 1024N/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 2362N/A * or visit www.oracle.com if you need additional information or have any 1024N/A * This file is available under and governed by the GNU General Public 1024N/A * License version 2 only, as published by the Free Software Foundation. 1024N/A * However, the following notice accompanied the original version of this 1024N/A * Written by Doug Lea with assistance from members of JCP JSR-166 1024N/A * Expert Group and released to the public domain, as explained at 1024N/A * @summary Try to tickle race conditions in 1024N/A * AbstractQueuedSynchronizer "shared" code 1024N/A /** Increase this for better chance of tickling races */ 1024N/A (
"Semaphore stuck: permits %d, thread waiting %s%n",
1024N/A for (
boolean fair :
new boolean[] {
true,
false })