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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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.

        1. hs_err_pid12633.log
          67 kB
          Tobias Hartmann
        2. method.cpp.patch
          2 kB
          Tobias Hartmann
        3. TestInterpreterMethodEntries.java
          4 kB
          Tobias Hartmann

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

              Created:
              Updated:
              Resolved: