RFR: 8344336: SM cleanup of java.lang.System, Runtime, String, StackWalker
Alan Bateman
alanb at openjdk.org
Sat Nov 16 07:57:47 UTC 2024
On Fri, 15 Nov 2024 22:41:22 GMT, Eirik Bjørsnøs <eirbjo 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 843:
>
>> 841:
>> 842: // Trim the given byte array to the given length
>> 843: private static byte[] safeTrim(byte[] ba, int len) {
>
> "safe" no longer carries meaning, this could just be "trim", "trimBuffer" or "trimArray"
Right, in other previously prepared changes, this was renamed to trim.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22168#discussion_r1844932173
More information about the core-libs-dev
mailing list