Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8340620

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: