code: public void setDiscarded()
      {
          state = state.transition(LifeCycle.DISCARDED);
          // release any memory owned by this allocator; automatically signals waiters
          onHeap.releaseAll();
          offHeap.releaseAll();
      }
docs: Indicate the memory and resources owned by this allocator are no longer referenced,
  and can be reclaimed/reused.