RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]
Chen Liang
liach at openjdk.org
Wed Sep 4 23:47:52 UTC 2024
On Wed, 4 Sep 2024 23:14:35 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> test/jdk/java/lang/String/CountNonZeroAscii.java line 35:
>>
>>> 33: * @modules java.base/jdk.internal.access
>>> 34: * @summary test latin1 String countNonZeroAscii
>>> 35: * @run testng/othervm -XX:+CompactStrings CountNonZeroAscii
>>
>> You are using the `testng` driver for a `main` test. I can probably fix it quickly.
>
> Is it recommended to change it to this?
>
> /*
> * @test
> * @modules java.base/jdk.internal.access
> * @summary test latin1 String countNonZeroAscii
> * @run main/othervm -XX:+CompactStrings CountNonZeroAscii
> * @run main/othervm -XX:-CompactStrings CountNonZeroAscii
> */
> ``
Yes, that fixes this test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20772#discussion_r1744626250
More information about the core-libs-dev
mailing list