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

avoid comparing this pointers to NULL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 14
    • 14
    • hotspot
    • b07

    Description

      We still have a few places in the HS codebase where "this" is compared to NULL.
      When compiling with xlc16 / xlclang we get these warnings :

       warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]

      so those places should be removed where possible.

      Attachments

        Issue Links

          Activity

            People

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: