17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
19 * CA 95054 USA or visit www.sun.com if you need additional information or
20 * have any questions.
21 */
22
23 /*
24 * This file is available under and governed by the GNU General Public
25 * License version 2 only, as published by the Free Software Foundation.
26 * However, the following notice accompanied the original version of this
27 * file:
28 *
29 * Written by Doug Lea with assistance from members of JCP JSR-166
30 * Expert Group and released to the public domain, as explained at
31 * http://creativecommons.org/licenses/publicdomain
32 */
33
34 /*
35 * @test
36 * @bug 4486658
37 * @compile -source 1.5 MapCheck.java
38 * @run main/timeout=240 MapCheck
39 * @summary Times and checks basic map operations
40 */
41
42 import java.util.*;
43 import java.io.*;
44
45 public class MapCheck {
46
47 static final int absentSize = 1 << 17;
48 static final int absentMask = absentSize - 1;
49 static Object[] absent = new Object[absentSize];
50
51 static final Object MISSING = new Object();
52
53 static TestTimer timer = new TestTimer();
54
55 static void reallyAssert(boolean b) {
56 if (!b) throw new Error("Failed Assertion");
57 }
|
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
19 * CA 95054 USA or visit www.sun.com if you need additional information or
20 * have any questions.
21 */
22
23 /*
24 * This file is available under and governed by the GNU General Public
25 * License version 2 only, as published by the Free Software Foundation.
26 * However, the following notice accompanied the original version of this
27 * file:
28 *
29 * Written by Doug Lea with assistance from members of JCP JSR-166
30 * Expert Group and released to the public domain, as explained at
31 * http://creativecommons.org/licenses/publicdomain
32 */
33
34 /*
35 * @test
36 * @bug 4486658
37 * @compile MapCheck.java
38 * @run main/timeout=240 MapCheck
39 * @summary Times and checks basic map operations
40 */
41
42 import java.util.*;
43 import java.io.*;
44
45 public class MapCheck {
46
47 static final int absentSize = 1 << 17;
48 static final int absentMask = absentSize - 1;
49 static Object[] absent = new Object[absentSize];
50
51 static final Object MISSING = new Object();
52
53 static TestTimer timer = new TestTimer();
54
55 static void reallyAssert(boolean b) {
56 if (!b) throw new Error("Failed Assertion");
57 }
|