Integrated: 8269280: (bf) Replace StringBuffer in *Buffer.toString()
Aleksey Shipilev
shade at openjdk.java.net
Fri Jun 25 08:12:08 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
This pull request has now been integrated.
Changeset: 3a8f3d6c
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/3a8f3d6cac0ab859704db533bf1f63431fbd9253
Stats: 654 lines in 9 files changed: 638 ins; 5 del; 11 mod
8269280: (bf) Replace StringBuffer in *Buffer.toString()
Reviewed-by: alanb, chegar, bpb
-------------
PR: https://git.openjdk.java.net/jdk/pull/4581
More information about the nio-dev
mailing list