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

SecureClassLoader should not use CodeSource URLs as HashMap keys

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b70
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        SecureClassLoader.getProtectionDomain uses HashMap<CodeSource> to cache protection domains to speed up their construction. CodeSource.hashCode() uses URL.hashcode() and CodeSource.equals() uses URL.equals().
        However, these URL may cause DNS lookups which are expensive if everything is cached.

        We should avoid them, e.g. by using URI.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mullan Sean Mullan
                Reporter:
                igor Igor Nekrestyanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: