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

NULL-pointer dereferencing in LIR_OpProfileType::print_instr

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b55

      Backports

        Description

        On 02/13/2015 12:39 PM, Filipp Zhinkin wrote:
        I've found yet another bug:
        NULL-pointer dereferencing in LIR_OpProfileType::print_instr.

        LIR_OpProfileType's exact_klass is either a valid ciKlass when we know
        it statically,
        or a NULL when we don't.
        Unfortunately, LIR_OpProfileType::print_instr is dereferencing it
        without a NULL-check.

        A patch with a fix as well as a hs_err file attached to this mail.

        I've decided to print "unknown" exact klass's value in case of NULL to
        be consistent
        with ciTypeEntries::print_ciklass. Missed whitespaces were also added.

        // Personally, I would like to print something that starts with a
        character that could not
        // be a part of a valid java identifier's name (like <unknown>,
        <none>, etc.) in order
        // to distinguish special values from "unknown" and "none" classes.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  fzhinkin Filipp Zhinkin
                  Reporter:
                  iignatyev Igor Ignatyev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: