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

PropertyHashMap.rehash() does not grow enough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b86
    • generic
    • generic

      runtime.PropertyHashMap.rehash() currently adds a padding of 25% of the new size to the new element array size. However, to satisfy the three-quarters theshold it really needs to add 33.33%.

      This currently causes rehashing to take place with each added property for some table size ranges.

            jlaskey Jim Laskey
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: