void (long fileLength) { ourLoadedBytesLimitLock.lock(); try { LOG.assertTrue(ourTotalBytesLoadedIntoMemory >= fileLength); ourTotalBytesLoadedIntoMemory -= fileLength; if (ourTotalBytesLoadedIntoMemory < SOFT_MAX_TOTAL_BYTES_LOADED_INTO_MEMORY) { ourLoadedBytesAreReleasedCondition.signalAll(); } } finally { ourLoadedBytesLimitLock.unlock(); } }