1468N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1468N/A * This code is free software; you can redistribute it and/or modify it 1468N/A * under the terms of the GNU General Public License version 2 only, as 1468N/A * published by the Free Software Foundation. 1468N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1468N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1468N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1468N/A * version 2 for more details (a copy is included in the LICENSE file that 1468N/A * You should have received a copy of the GNU General Public License version 1468N/A * 2 along with this work; if not, write to the Free Software Foundation, 1468N/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 1468N/A * This file is available under and governed by the GNU General Public 1468N/A * License version 2 only, as published by the Free Software Foundation. 1468N/A * However, the following notice accompanied the original version of this 1468N/A * Written by Doug Lea with assistance from members of JCP JSR-166 1468N/A * Expert Group and released to the public domain, as explained at 1468N/A * @summary Check weak consistency of concurrent queue iterators 1468N/A // Other concurrent queues (e.g. ArrayBlockingQueue) do not 1468N/A // currently have weakly consistent iterators. 3387N/A // As of 2010-09, ArrayBlockingQueue passes this test, but 3387N/A // does not fully implement weak consistency. 1468N/A // TODO: make this more general 3059N/A for (
int i =
0; i <
10; i++)
1468N/A //--------------------- Infrastructure ---------------------------