Ejemplo n.º 1
0
 @Stage("Segment")
 public boolean realloc(long fromPos, int oldChunks, int newChunks) {
   if (fromPos + newChunks < hh.h().actualChunksPerSegmentTier
       && freeList.isRangeClear(fromPos + oldChunks, fromPos + newChunks)) {
     freeList.setRange(fromPos + oldChunks, fromPos + newChunks);
     // checking and updating lowestPossiblyFreeChunk is omitted because adds computational
     // complexity for seemingly very small gain
     return true;
   } else {
     return false;
   }
 }