Relates :
|
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.
|