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

find_method_handle_intrinsic leaks Method*

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b14

      If two threads create a Method* via make_method_handle_intrinsic, the first adds it to the hashtable and the second thread leaks the method. Adding the Method* to the deallocate list isn't sufficient because it's also linked in the code cache through a native wrapper.
      If performance is not affected, holding a lock through the process would be the simplest solution, but we should evaluate the performance with this change.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: