private void updateReleaseLocks() throws CacheException {
  if (numLocks.addAndGet(-1) < 0) {
    throw new CacheException("Redundant release of GPU object");
  }
  if (evictionPolicy == EvictionPolicy.LRU) {
    timestamp.set(System.nanoTime());
  }
 else   if (evictionPolicy == EvictionPolicy.LFU) {
    timestamp.addAndGet(1);
  }
 else   if (evictionPolicy == EvictionPolicy.MIN_EVICT) {
  }
 else {
    throw new CacheException("The eviction policy is not supported:" + evictionPolicy.name());
  }
}

private void updateReleaseLocks ( ) throws CacheException { if ( numLocks . addAndGet ( - 1 ) < 0 ) { throw new CacheException ( "Redundant release of GPU object" ) ; } if ( evictionPolicy == EvictionPolicy . LRU ) { timestamp . set ( System . nanoTime ( ) ) ; } else if ( evictionPolicy == EvictionPolicy . LFU ) { timestamp . addAndGet ( 1 ) ; } else if ( evictionPolicy == EvictionPolicy . MIN_EVICT ) { } else { throw new CacheException ( "The eviction policy is not supported:" + evictionPolicy . name ( ) ) ; } }
updates the locks depending on the eviction policy selected
