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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • b150

      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.

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

              Created:
              Updated:
              Resolved: