--- jsr166/src/test/tck/JSR166TestCase.java 2017/03/14 00:54:27 1.221 +++ jsr166/src/test/tck/JSR166TestCase.java 2017/05/12 18:12:51 1.222 @@ -1138,6 +1138,12 @@ public class JSR166TestCase extends Test } /** + * The maximum number of consecutive spurious wakeups we should + * tolerate (from APIs like LockSupport.park) before failing a test. + */ + static final int MAX_SPURIOUS_WAKEUPS = 10; + + /** * The number of elements to place in collections, arrays, etc. */ public static final int SIZE = 20;