Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160577

verify_lookup_length is defined and implemented in BasicHashtable, but only used by SharedDictionary

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None

      Description

      "verify_lookup_length" is defined in BasicHashtable<F>, and it's called by "verify()" methods in:

      ProtectionDomainCacheTable : Hashtable : BasicHashtable
      Dictionary : TwoOopHashtable : Hashtable : BasicHashtable
      SymbolEntryTable : Hashtable : BasicHashtable
      ModuleEntryTable : Hashtable : BasicHashtable
      PackageEntryTable : Hashtable : BasicHashtable
      PlaceholderTable : TwoOopHashtable : Hashtable : BasicHashtable

      where "SharedDictionary" is the only class extending "Dictionary".

      "verify_lookup_length" uses "_lookup_count" and "_lookup_length" fields defined in BasicHashtable<F>, but the only class actually using those fields is "SharedDictionary", in all other cases they are not used, so "verify_lookup_length is a NOP for all the cases except "SharedDictionary".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                gziemski Gerard Ziemski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: