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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 12
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: