On Tue, 27 Aug 2024 05:08:53 GMT, Shaojin Wen <[email protected]> wrote:
> A small optimization, when CompactStrings is turned off, the coder method is
> not generated, which improves the startup performance
src/java.base/share/classes/java/lang/System.java line 2641:
> 2639: }
> 2640:
> 2641: public byte stringInitCoder() {
Why do we expose this as a coder instead of other ways, such as a `boolean
hasCompactStrings()`? Are we going to use this coder elsewhere?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20722#discussion_r1746298499