docs: private long move(long fromBaseAddress, long capacity, MemoryAllocator fromMalloc, MemoryAllocator toMalloc) {
          final long allocatedSize = HEADER_SIZE + capacity * slotLength;
          final long toBaseAddress = toMalloc.allocate(allocatedSize) + HEADER_SIZE;
          mem.copyMemory(fromBaseAddress - HEADER_SIZE, toBaseAddress - HEADER_SIZE, allocatedSize);
          fromMalloc.free(fromBaseAddress - HEADER_SIZE, allocatedSize);
          return toBaseAddress;
      }