RFR: 8268873: Unnecessary Vector usage in java.base

Sean Mullan mullan at openjdk.java.net
Fri Jul 23 17:06:06 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?

Yes, I can do that, but I will wait until Monday in case there are any post-integration issues that I need to follow up on.

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

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



More information about the security-dev mailing list