docs: public boolean reserveAllocationIfPossible(Long threadId, Integer deviceId, long memorySize) {
          ensureThreadRegistered(threadId, deviceId);
          try {
              deviceLocks.get(deviceId).writeLock().lock();
              /*
              if (getAllocatedSize(deviceId) + memorySize + getReservedSpace(deviceId)> environment.getDeviceInformation(deviceId).getTotalMemory() * configuration.getMaxDeviceMemoryUsed()) {
                  return false;
              } else {
                  addToReservedSpace(deviceId, memorySize);
                  return true;
              }
              */
              addToReservedSpace(deviceId, memorySize);
              return true;
          } finally {
              deviceLocks.get(deviceId).writeLock().unlock();
          }
      }