Current implementation iterates all buckets when lambda function doesn't return false. If the occupancy of a hashable is low, eg. an empty hashable with 100 buckets, we have to emit 100 loads to finish one iteration_all
ResourceHashtableBase::_number_of_entries is the number of nodes in the hashtable. we can leverage it to quit iteration earlier.
ResourceHashtableBase::_number_of_entries is the number of nodes in the hashtable. we can leverage it to quit iteration earlier.
- relates to
-
JDK-8301136 Improve unlink() and unlink_all() of ResourceHashtableBase
- Closed