Class SegmentedHashMap.Segment

  • Enclosing class:
    SegmentedHashMap

    protected static class SegmentedHashMap.Segment
    extends Object
    Segment metadata.
    • Field Detail

      • cEntries

        protected int cEntries
        The number of Entry objects (including synthetics) in this segment.

        Note: On a JSR-133 non-compliant JVM, this value may be stale to some extent. It is only used as an internal growth statistic, so this is acceptable. On JSR-133 compliant JVMs, the segment lock under which this value is modified performs an atomic CAS which would guarantee that writes get flushed.

      • fContend

        protected volatile boolean fContend
        Are any threads contending to lock this segment?
    • Constructor Detail

      • Segment

        protected Segment()