RFR: 8344336: SM cleanup of java.lang.System, Runtime, String, StackWalker
Chen Liang
liach at openjdk.org
Mon Nov 18 00:18:55 UTC 2024
On Fri, 15 Nov 2024 22:11:17 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> Removed use of SecurityManager to check permissions.
> Relaxed defensive copying of byte arrays (due to lack of SM)
src/java.base/share/classes/java/lang/String.java line 691:
> 689: System.getSecurityManager() != null) {
> 690: bytes = Arrays.copyOfRange(bytes, offset, offset + length);
> 691: offset = 0;
Was this defensive copy particularly important to security managers but has no effect for other scenarios?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22168#discussion_r1845705327
More information about the core-libs-dev
mailing list