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

Roger Riggs rriggs at openjdk.org
Thu Jun 26 13:31:32 UTC 2025


On Wed, 25 Jun 2025 22:29:39 GMT, Chen Liang <liach at openjdk.org> wrote:

> For startup time, I believe this should have little impact: String itself, without allocation of its storage array, should be as expensive as generic record objects. This should have similar impact of declaring new records (minimal), and in addition, this doesn't introduce new classes, so there will be even less of an effect.

Yes, but the comparison should be against the non-allocating (current implementation) not the initial implementation in the PR. Startup measurement are done periodically and if there is any impact it will show up.

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

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


More information about the core-libs-dev mailing list