RFR: 8269280: (bf) Replace StringBuffer in *Buffer.toString()

Brian Burkhalter bpb at openjdk.java.net
Thu Jun 24 20:08:06 UTC 2021


On Thu, 24 Jun 2021 08:31:58 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> There is a StringBuffer use in X-Buffer template. The extra thread safety is not required there. In post-BiasedLocking times, this is gets worse, as every append is synchronized.
> 
> Additional testing:
>  - [x] `java/nio/Buffer` tests, verified current `toString` output is unchanged

Marked as reviewed by bpb (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/4581


More information about the nio-dev mailing list