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

Improve startup behavior of SecurityProperties

    XMLWordPrintable

Details

    Backports

      Description

        Some java.security properties will always be accessed even when there's no SecurityManager installed, which means we might load sun.security.util.SecurityProperties early in the bootstrap sequence. To improve startup - and keep it from regressing in a few key applications - we should avoid calling through AccessController when there's no SecurityManager installed.

        Desugaring the lambda use here was also considered, but if we run with a SecurityManager installed we'll instantiate a few other lambdas during bootstrap so gain was not measurable.

        Attachments

          Issue Links

            Activity

              People

                redestad Claes Redestad
                redestad Claes Redestad
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: