release method

void release(
  1. int bytes
)

Release bytes of previously acquired memory.

Implementation

void release(int bytes) {
  _currentBytes -= bytes;
  if (_currentBytes < 0) _currentBytes = 0;
  _processWaiters();
}