On Tue, 22 Oct 2024 04:50:29 GMT, Chen Liang <[email protected]> wrote:
>> @cl4es discovered that Stack Map generation in ClassFile API uses
>> `componentType` and `arrayType` for `aaload` `aastore` instructions, which
>> are currently quite slow. We can split out array class descriptors from
>> class or interfaces to support faster `arrayType` and `componentType`
>> operations.
>>
>> Tentative, as I currently have no way to measure the actual impact of this
>> patch on the startup performance; however, this made the `ClassDesc`
>> implementations much cleaner.
>
> Chen Liang has updated the pull request incrementally with one additional
> commit since the last revision:
>
> Relax displayName spec
src/java.base/share/classes/java/lang/constant/ClassDesc.java line 278:
> 276:
> 277: /**
> 278: * {@return a human-readable name for this {@code ClassDesc}}
I don't see the merit of making the string representation unspecified. The
implSpec already specifies the string representation for the display name.
Why not just promoting it to normal spec text?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20665#discussion_r1811374200