Fix -Wzero-as-null-pointer-constant warnings for CompressedOops

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: None
    • Component/s: hotspot
    • b18

      Most places doing a null check on CompressedOops::base() compare it to nullptr. However, there are a few places that compare it to a literal 0. Also, one caller of CompressedOops::set_base provides a literal 0 value. All of these trigger -Wzero-as-null-pointer-constant warnings.

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

              Created:
              Updated:
              Resolved: