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

avoid comparing this pointers to NULL

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: