Пример #1
0
 public void findSlot(Temp temp) {
   if (temp.isOffsetFixed()) {
     return;
   }
   temp.offset = OffsetCounter.LOCAL_OFFSET_COUNTER.next(temp.size);
   currentSize += temp.size;
   if (currentSize > maxSize) {
     maxSize = currentSize;
   }
 }