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

Metadata methods print_(value_)on_maybe_null() compare 'this' to NULL

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 12
    • 12
    • hotspot
    • b05

    Description

      Methods Metadata::print_value_on_maybe_null() and Metadata::print_value_on() compare 'this' with NULL. The compiler is free to elide these tests, since (this == NULL) can never be true; applying an ordinary member function to NULL invokes undefined behavior. These functions should be changed to be static member functions.

      Attachments

        Issue Links

          Activity

            People

              hseigel Harold Seigel (Inactive)
              hseigel Harold Seigel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: