RFR: 8291641: Optimize StackTraceElement.toString() [v2]
David Schlosnagle
duke at openjdk.org
Mon Aug 1 17:42:50 UTC 2022
On Mon, 1 Aug 2022 17:24:48 GMT, David Schlosnagle <duke at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/StackTraceElement.java line 366:
>>
>>> 364: if (!dropClassLoaderName() && classLoaderName != null && !classLoaderName.isEmpty()) {
>>> 365: prefixClassLoader = true;
>>> 366: length += classLoaderName.length() + 1 /* '/' */;
>>
>> Do we still need this comment `/* '/' */`?
>
> happy to remove these if desired
updated to remove extraneous comments
-------------
PR: https://git.openjdk.org/jdk/pull/9665
More information about the core-libs-dev
mailing list