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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: