-
Bug
-
Resolution: Fixed
-
P3
-
7u25
-
b154
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174606 | 10 | Claes Redestad | P3 | Resolved | Fixed | b01 |
Additional security checks have been added to various methods of java.lang.Class, which caused a performance regression. These checks only need to be performed when a SecurityManager is enabled, but the code is structured in a way that additional methods are called even when a SecurityManager is not enabled, such as the relatively expensive Reflection.getCallerClass method.
The fix is to restructure the calls to checkMemberAccess and checkPackageAccess so that they are only invoked when a SecurityManager is enabled.
The fix is to restructure the calls to checkMemberAccess and checkPackageAccess so that they are only invoked when a SecurityManager is enabled.
- backported by
-
JDK-8174606 Class.getConstructor() performance regression
-
- Resolved
-
- relates to
-
JDK-8161379 Force inline methods calling Reflection.getCallerClass
-
- Closed
-