Details
-
Type:
Enhancement
-
Status: Closed
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9
-
Component/s: security-libs
-
Subcomponent:
-
Resolved In Build:b70
-
Verification:Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8135931 | emb-9 | Daniel Fuchs | P3 | Resolved | Fixed | team |
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
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
- backported by
-
JDK-8135931 Improve performance of SecurityManager.checkPackageAccess
-
- Resolved
-
- relates to
-
JDK-8062948 Implement and measure potential performance improvements
-
- Resolved
-