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

Use a constant hash table size in order to enable compiler optimization

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 12
    • hotspot
    • None
    • b01

      In the KlassInfoTable, there is a _size field which is initialized to the constant _num_buckets and never updated (except when clearing the table).

      This prevents GCC from optimizing the code and could be optimized by removing the constant altogether and using the _num_buckets variable directly.

            jcbeyler Jean Christophe Beyler
            jcbeyler Jean Christophe Beyler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: