On Fri, 15 Nov 2024 22:11:17 GMT, Roger Riggs <rri...@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