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

Placeholder hash code is the same as Dictionary hash code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • b03

      The code in systemDictionary computes both hashcodes when they're the same, so add some asserts and only compute one of them.

      The system dictionary computes the hashcode on the name and index outside the lookup code which might have been an optimization, since there are a few lookups. It makes the code messy. Maybe the hashcode and index computation should be inside the placeholder()->find_and_add(), find_and_remove(), get_entry() functions etc instead.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: