void clear() { if ( count != 0 ) { lock(); try { HashEntry<K, V>[] tab = table; for ( int i = 0; i < tab.length; i++ ) { tab[i] = null; } ++modCount; eviction.clear(); count = 0; // write-volatile } finally { unlock(); } } }
void clear() { if ( count != 0 ) { lock(); try { HashEntry<K, V>[] tab = table; for ( int i = 0; i < tab.length; i++ ) { tab[i] = null; } ++modCount; eviction.clear(); count = 0; // write-volatile } finally { unlock(); } } }