RFR: 8351000: StringBuilder getChar and putChar robustness
Roger Riggs
rriggs at openjdk.org
Tue Apr 29 14:21:48 UTC 2025
On Tue, 29 Apr 2025 14:13:20 GMT, Chen Liang <liach at openjdk.org> wrote:
>> Improve StringBuilder getChar and putChar robustness with racy updates to StringBuilder.
>> Test racing threads with append, insert, and reading characters.
>
> test/jdk/java/lang/StringBuilder/RacingSBThreads.java line 27:
>
>> 25: * @test
>> 26: * @summary Test multi-threaded use of StringBuilder
>> 27: * @compile --release 8 RacingSBThreads.java
>
> Is there a reason for this specific release number?
Yes, so the test can be compiled and run on older versions. Specifically, restricting the use of String.repeat.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24951#discussion_r2066663882
More information about the core-libs-dev
mailing list