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

Slow ClassLoaderReferenceImpl.findType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      The following was reported Egor Ushakov (JetBrains).

      The com.sun.tools.jdi.ClassLoaderReferenceImpl#findType may be slow because ClassLoaderReferenceImpl#visibleClasses does not populate signature and we check it for every class in the loop just after, so requesting all unavailable signatures one by one.

      The suggested fix is:
        https://github.com/JetBrains/JetBrainsRuntime/commit/ae823a660ba5ee48ac4d010723b8e33b0db9612b

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eushakov Egor Ushakov
              Reporter:
              sspitsyn Serguei Spitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: