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

Improve performance of SecurityManager.checkPackageAccess

    XMLWordPrintable

Details

    • b70
    • Verified

    Backports

      Description

        The package matching algorithm in the checkPackageAccess method can be optimized in several ways to improve performance:

        1. Restricted packages that are longer than the package being checked can be skipped; there is no need to compare them since they will never match
        2. A more efficient algorithm can be used when checking if the packages are equal to each other

        Attachments

          Issue Links

            Activity

              People

                mullan Sean Mullan
                mullan Sean Mullan
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: