Integrated: 8273098: Unnecessary Vector usage in java.naming

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Mon Aug 30 13:16:30 UTC 2021


On Thu, 26 Aug 2021 07:04:45 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/array 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: 5185dbde
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Aleksei Efimov <aefimov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/5185dbde67f07ff876305a9568bb5cebb7a7b384
Stats:     30 lines in 3 files changed: 1 ins; 2 del; 27 mod

8273098: Unnecessary Vector usage in java.naming

Reviewed-by: aefimov, dfuchs

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

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


More information about the core-libs-dev mailing list