RFR: 8337167: StringSize deduplication [v2]

Chen Liang liach at openjdk.org
Thu Jul 25 14:58:33 UTC 2024


On Thu, 25 Jul 2024 14:48:29 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove unused Integer.stringSize & Long.stringSize
>
> What is the performance difference between the long and int versions?
> If it is negligible, keep only the long version.

@RogerRiggs They will be used in MethodHandle chains or explicit bytecode; having `long` and `int` specific versions simplify the bytecode or MethodHandle we need to prepare for String concatenation.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20322#issuecomment-2250575109


More information about the core-libs-dev mailing list