RFR: 8268873: Unnecessary Vector usage in java.base

Alan Bateman alanb at openjdk.java.net
Fri Jul 23 15:30:07 UTC 2021


On Fri, 18 Jun 2021 18:28:26 GMT, Sean Mullan <mullan 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.
>
> The change to `PKCS7::verify(byte[])` looks fine.

@seanjmullan Are you planning to sponsor this?

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

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


More information about the security-dev mailing list