RFR: 8351000: StringBuilder getChar and putChar robustness

Chen Liang liach at openjdk.org
Tue Apr 29 14:17:09 UTC 2025


On Tue, 29 Apr 2025 14:10:30 GMT, Roger Riggs <rriggs 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?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24951#discussion_r2066636836


More information about the core-libs-dev mailing list