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

Method::restore_unshareable_info() does not invoke Method::link_method()

    Details

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

      Description

      While working on JDK-8169711, I noticed that the assert in Method::link_method() is not always triggered (sometimes we just crash). This is because
      1) the "_from_compiled_entry == NULL" check in Method::restore_unshareable_info() is always false and therefore link_method() is not invoked and
      2) in Method::link_method() we only execute the check if the adapter (which is shared) was not yet initialized. See attached method.cpp.patch for a suggestion on how to refactor the method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iklam Ioi Lam
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: