RFR: 8351000: StringBuilder getChar and putChar robustness [v2]
Shaojin Wen
swen at openjdk.org
Wed Apr 30 13:23:47 UTC 2025
On Wed, 30 Apr 2025 13:13: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.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>
> Test cleanup
test/jdk/java/lang/StringBuilder/RacingSBThreads.java line 64:
> 62:
> 63: // Create a String with a repeated character
> 64: private static String initString(char c, int len) {
It may be easier to understand if initString is renamed to repeat
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24951#discussion_r2068653589
More information about the core-libs-dev
mailing list