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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • None

      "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".

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

              Created:
              Updated:
              Resolved: