JDK-8338930 : StringConcatFactory hardCoded string concatenation strategy
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-24
  • Updated: 2024-09-16
  • Resolved: 2024-09-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b15Fixed
Related Reports
Relates :  
Description
PR #20273 uses non-static constants/length/coder in ConcatBase, which can solve the reuse problem well. However, when the number of parameters is greater than inlineThreshold, the performance will regress.

When the number of parameters is large, the possibility of reuse will be lower, so we can use the static concat method and write the length and coder directly into the bytecode to solve the performance regression problem.
Comments
Changeset: 4d597de8 Branch: master Author: Shaojin Wen <swen@openjdk.org> Committer: Claes Redestad <redestad@openjdk.org> Date: 2024-09-10 12:33:07 +0000 URL: https://git.openjdk.org/jdk/commit/4d597de893dad79e74a280f3f9e82f0a14f9045d
10-09-2024

This is a follow-up to PR #20273 ( https://github.com/openjdk/jdk/pull/20273 )
25-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20675 Date: 2024-08-22 11:50:02 +0000
25-08-2024