private static final long serialVersionUID = 4724463372850048672L;
- static final HashMap<AsyncBarrierImpl, Collection<AsyncBarrierImpl>> reverseLookup = new HashMap<AsyncBarrierImpl, Collection<AsyncBarrierImpl>>();
- public static final HashMap<AsyncBarrierImpl, Debugger> debuggerMap = new HashMap<AsyncBarrierImpl, Debugger>();
- static final HashMap<AsyncBarrierImpl, CacheEntry> entryMap = new HashMap<AsyncBarrierImpl, CacheEntry>();
- static final HashMap<AsyncBarrierImpl, Boolean> restartMap = new HashMap<AsyncBarrierImpl, Boolean>();
+ static final HashMap<AsyncBarrierImpl, Collection<AsyncBarrierImpl>> reverseLookup = new HashMap<>();
+ public static final HashMap<AsyncBarrierImpl, Debugger> debuggerMap = new HashMap<>();
+ static final HashMap<AsyncBarrierImpl, CacheEntry<?>> entryMap = new HashMap<>();
+ static final HashMap<AsyncBarrierImpl, Boolean> restartMap = new HashMap<>();
static final int WAIT_TIME = 600;
- public static final boolean BOOKKEEPING = true;
+ public static final boolean BOOKKEEPING = false;
public static final boolean PRINT = false;
static final boolean RESTART_GUARD = true;
//private final Semaphore sema = new Semaphore(0);
- public AsyncBarrierImpl(AsyncBarrierImpl caller, CacheEntry entry) {
+ public AsyncBarrierImpl(AsyncBarrierImpl caller, CacheEntry<?> entry) {
super(0);
if (BOOKKEEPING) {
synchronized (entryMap) {
}
public static String report(AsyncBarrierImpl barrier) {
- CacheEntry e = entryMap.get(barrier);
+ CacheEntry<?> e = entryMap.get(barrier);
if(e != null) return e.toString();
else return "Barrier@" + System.identityHashCode(barrier);
}