C1: x86: Optimize type profile helper

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 25
    • Component/s: hotspot

      Current C1 LIR_Assembler::type_profile_helper performs two linear scans (of TypeProfileWidth width) looking for MDO slot to update the type profile. This takes considerable space in generated code, especially with larger TypeProfileWidth-s.

      We can optimize the type profile helper for code density. We do not care *all too much* about minute differences in performance of this check, at it runs only for profiling in tier3 compiled code.

      Draft PR: https://github.com/openjdk/jdk/pull/24491

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: