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

Resolve permissions for code source URLs lazily

    Details

      Backports

        Description

        When establishing protection domains during class load, we resolve the permissions needed to access a code source eagerly. This forces early initialization of FilePermission etc, which in turn initializes default file system and others. Since the permissions are not checked against unless a security manager has been installed, this is often done unnecessarily.

        By doing the initialization lazily using a delegating implementation, we reduce number of classes loaded on many small apps by ~40.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: