Integrated: 8268873: Unnecessary Vector usage in java.base

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Mon Jul 26 18:22:39 UTC 2021


On Mon, 14 Jun 2021 11:34:50 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> Usage of thread-safe collection `Vector` is unnecessary. It's recommended to use `ArrayList` if a thread-safe implementation is not needed. In post-BiasedLocking times, this is gets worse, as every access is synchronized.
> I checked only places where `Vector` was used as local variable.

This pull request has now been integrated.

Changeset: b8f79a7f
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Sean Mullan <mullan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/b8f79a7ff798d3a0eee03a8153be942401781bbc
Stats:     18 lines in 3 files changed: 1 ins; 4 del; 13 mod

8268873: Unnecessary Vector usage in java.base

Reviewed-by: mullan

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

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


More information about the security-dev mailing list