RFR: 8316190: Improve MemorySegment::toString
Roger Riggs
rriggs at openjdk.org
Thu Sep 14 13:47:41 UTC 2023
On Thu, 14 Sep 2023 12:02:53 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This PR proposes to improve the MemorySegment::toString to reduce cluttering and add missing comas.
>
> src/java.base/share/classes/jdk/internal/foreign/Utils.java line 277:
>
>> 275: }
>> 276:
>> 277: public static String toHexString(long value) {
>
> We intend to use this utility method in coming PRs.
The String concat code is really good at optimizing, but this will require a new string be created.
$0.02,Roger
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15740#discussion_r1325977796
More information about the core-libs-dev
mailing list