Simplify MetaspaceShared::is_in_shared_space and MetaspaceObj::is_shared

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 9
    • Component/s: hotspot
    • b01
    • Verified

      We have a start-up benchmark that shows the various is_in_shared_space functions cost more than 1% of total elapsed time.

      After JDK-8072061, all the shared regions are contiguous so we should be able to simplify these functions to a small number of pointer comparisons.

            Assignee:
            Ioi Lam
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: