public final void makeEmptyAndClean ( ) { // if (tc.isEntryEnabled()) // SibTr.entry(tc, "makeEmptyAndClean"); makeEmpty ( ) ; for ( int i = 0 ; i < m_array . length ; ++ i ) m_array [ i ] = null ; // if (tc.isEntryEnabled()) // SibTr.entry(tc, "makeEmptyAndClean"); }
Empty the queue and also set every element of the internal array to null so that the removed elements can be GC d .