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

Placeholder hash code is the same as Dictionary hash code

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: