static void releaseBuffer(ByteBuffer bb,DMStats stats,boolean send){
  if (TCPConduit.useDirectBuffers) {
    BBSoftReference bbRef=new BBSoftReference(bb,send);
    bufferQueue.offer(bbRef);
  }
 else {
    if (send) {
      stats.incSenderBufferSize(-bb.capacity(),false);
    }
 else {
      stats.incReceiverBufferSize(-bb.capacity(),false);
    }
  }
}

static void releaseBuffer ( ByteBuffer bb , DMStats stats , boolean send ) { if ( TCPConduit . useDirectBuffers ) { BBSoftReference bbRef = new BBSoftReference ( bb , send ) ; bufferQueue . offer ( bbRef ) ; } else { if ( send ) { stats . incSenderBufferSize ( - bb . capacity ( ) , false ) ; } else { stats . incReceiverBufferSize ( - bb . capacity ( ) , false ) ; } } }
releases a previously acquired buffer .
