RISC-V: Optimize encode_heap_oop when oop is not null

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 23
    • Component/s: hotspot
    • b05
    • riscv
    • linux

      Currently, encode_heap_oop will check if the oop pointer is nullptr at first. We can skip the null check of the oop to reduce the unnecessary branch instruction when encoding non-null oop pointer into compressed form.

            Assignee:
            Feilong Jiang
            Reporter:
            Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: