RISCV: Fix -Wzero-as-null-pointer-constant warning in emit_static_call_stub

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 24
    • Component/s: hotspot
    • b02
    • riscv

      The RISCV variant of MacroAssembler::emit_static_call_stub calls movptr with a literal 0 as the second (address) argument, triggering a -Wzero-as-null-pointer-constant when that's enabled.

      This is backsliding from JDK-8338019, recently introduced by JDK-8276799.

            Assignee:
            Kim Barrett
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: