/** * Acquires write lock and returns bin address for given hash code. * * @param hash Hash code. * @return Locked bin address. */ @SuppressWarnings("LockAcquiredButNotSafelyReleased") private long writeLock(int hash) { lock.writeLock().lock(); // Get bin address inside the lock. return binAddress(hash); }
/** * Acquires read lock abd returns bin address for given hash code. * * @param hash Hash code. * @return Locked bin address. */ @SuppressWarnings("LockAcquiredButNotSafelyReleased") private long readLock(int hash) { lock.readLock().lock(); // Get bin address inside the lock. return binAddress(hash); }
long next = Entry.nextAddress(entryAddr, mem); long newBinAddr = binAddress(hash, newTblAddr, newCap);
long next = Entry.nextAddress(entryAddr, mem); long newBinAddr = binAddress(hash, newTblAddr, newCap);
/** * Acquires write lock and returns bin address for given hash code. * * @param hash Hash code. * @return Locked bin address. */ @SuppressWarnings("LockAcquiredButNotSafelyReleased") private long writeLock(int hash) { lock.writeLock().lock(); // Get bin address inside the lock. return binAddress(hash); }
/** * @param hash Hash. * @return Memory address for the bin. */ long binAddress(int hash) { return binAddress(hash, tblAddr, cap); }
/** * Acquires read lock abd returns bin address for given hash code. * * @param hash Hash code. * @return Locked bin address. */ @SuppressWarnings("LockAcquiredButNotSafelyReleased") private long readLock(int hash) { lock.readLock().lock(); // Get bin address inside the lock. return binAddress(hash); }
/** * @param hash Hash. * @return Memory address for the bin. */ long binAddress(int hash) { return binAddress(hash, tblAddr, cap); }