RFR: 8357289: Break down the String constructor into smaller methods [v3]

Shaojin Wen swen at openjdk.org
Tue May 20 08:48:53 UTC 2025


On Tue, 20 May 2025 08:26:20 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> I wonder if it would be better to first check `COMPACT_STRINGS` in a first-level `if` and then branch off to separate support methods? Looking at the comments near the declaration of `COMPACT_STRINGS`, this might provide additional benefits.

Now all the broken methods have CodeSize < 325 and can be inlined by C2. If we check COMPACT_STRINGS at the first level, we need to change more. I want to achieve the goal with minimal changes.

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

PR Comment: https://git.openjdk.org/jdk/pull/25290#issuecomment-2893507842


More information about the core-libs-dev mailing list