From NonBlockingHashMap.java 1.39, resize operation:
817 if( newsz <= oldlen && // New table would shrink or hold steady?
818 tm <= topmap._last_resize_milli+10000 && // Recent resize (less than 1 sec ago)
819 (q=_slots.estimate_get()) >= (sz<<1) ) // 1/2 of keys are dead?
The "10000" is off a bit wrt. the comment, It was introduced in revision 1.16, it is impossible to verify if it's a typo or was intended from the commit comment:
Log in to post a comment.