Returns the segment that should be used for a key with the given hash. @param hash the hash code for the key @return the segment
(int hash)
| 1757 | * @return the segment |
| 1758 | */ |
| 1759 | Segment<K, V> segmentFor(int hash) { |
| 1760 | class="cm">// TODO(fry): Lazily create segments? |
| 1761 | return segments[(hash >>> segmentShift) & segmentMask]; |
| 1762 | } |
| 1763 | |
| 1764 | Segment<K, V> createSegment( |
| 1765 | int initialCapacity, long maxSegmentWeight, StatsCounter statsCounter) { |
no outgoing calls