RFR: 8344668: Unnecessary array allocations and copying in TextLine [v2]

Daniel Gredler dgredler at openjdk.org
Thu Dec 5 18:22:28 UTC 2024


On Wed, 4 Dec 2024 21:20:37 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> Daniel Gredler has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix second array expansion site
>
> @gredler There is one other place where `expandArray()` is called similarly -  [TextLine.getComponents()](https://github.com/openjdk/jdk/blob/bb7a66ce7b08a7f50da3194390c1d077a0b1fb81/src/java.desktop/share/classes/java/awt/font/TextLine.java#L1078C1-L1081C22).

@honkar-jdk Good catch -- I've gone ahead and fixed that one, too.

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

PR Comment: https://git.openjdk.org/jdk/pull/22288#issuecomment-2521103573


More information about the client-libs-dev mailing list