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