Lines Matching refs:dnHashCode
172 private final int dnHashCode;
176 DNLockHolder(final DNLockHolder parent, final DN dn, final int dnHashCode)
180 this.dnHashCode = dnHashCode;
401 final int dnHashCode = dn.hashCode();
402 final LinkedList<DNLockHolder> bucket = getBucket(dnHashCode);
407 if (lock.dnHashCode == dnHashCode && lock.dn.equals(dn))
424 final int dnHashCode = dn.hashCode();
427 if (lock.dnHashCode == dnHashCode && lock.dn.equals(dn))
448 final int dnHashCode = dn.hashCode();
449 DNLockHolder lock = removeLock(cache, dn, dnHashCode);
452 lock = acquireLockFromLockTable(dn, dnHashCode, cache);
464 private DNLockHolder acquireLockFromLockTable(final DN dn, final int dnHashCode, final LinkedList<DNLockHolder> cache)
479 final LinkedList<DNLockHolder> bucket = getBucket(dnHashCode);
482 DNLockHolder lock = removeLock(bucket, dn, dnHashCode);
485 lock = new DNLockHolder(parentLock, dn, dnHashCode);
506 final LinkedList<DNLockHolder> bucket = getBucket(lock.dnHashCode);
513 removeLock(bucket, lock.dn, lock.dnHashCode);
529 private LinkedList<DNLockHolder> getBucket(final int dnHashCode)
531 return lockTable[dnHashCode & numberOfBuckets - 1];
549 private DNLockHolder removeLock(final LinkedList<DNLockHolder> lockList, final DN dn, final int dnHashCode)
555 if (lock.dnHashCode == dnHashCode && lock.dn.equals(dn))