Go to the documentation of this file. 1 package com.cliffc.aa.tvar;
39 if(
get(tn.
_uid)!=
null )
return this;
49 if( uq==
null )
return this;
54 if( uq1.
size() < uq0.
size() ) { uq0=uq; uq1=
this; }
56 boolean progress=
false;
58 if( !n.is_dead() && uq1.
get(n._uid)!=n )
59 { progress =
true;
break; }
60 if( !progress )
return uq1;
84 hash =
hash^System.identityHashCode(n);
89 @Override
public boolean equals( Object o ) {
90 if( !(o instanceof
UQNodes) )
return false;
94 if(
size() != uq.
size() )
return false;
96 if( n!=uq.
get(n._uid) )
A lock-free alternate implementation of java.util.concurrent.ConcurrentHashMap with better scaling pr...
void clear()
Removes all of the mappings from this map.
UQNodes addAll(UQNodes uq)
int size()
Returns the number of key-value mappings in this map.
final TypeV get(long key)
Returns the value to which the specified key is mapped, or.
static UQNodes make(Node tn)
UQNodes rename(HashMap< Node, Node > map)
static final int hash(long h)
A lock-free alternate implementation of java.util.concurrent.ConcurrentHashMap with primitive long ke...
TypeV put(long key, TypeV val)
Maps the specified key to the specified value in the table.
Collection< TypeV > values()
Returns a Collection view of the values contained in this map.
static final NonBlockingHashMap< UQNodes, UQNodes > UQSETS