Re: RFR: 8271603: Unnecessary Vector usage in java.desktop [v6]

2021-09-03 Thread Andrey Turbanov
On Fri, 3 Sep 2021 03:17:02 GMT, Sergey Bylokhov wrote: >> Andrey Turbanov has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge remote-tracking branch 'origin/master' into >> avoid-unnecessary-vector-usag

Re: RFR: 8271603: Unnecessary Vector usage in java.desktop [v7]

2021-09-03 Thread Andrey Turbanov
> 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. A

Re: RFR: 8271603: Unnecessary Vector usage in java.desktop [v7]

2021-09-03 Thread Sergey Bylokhov
On Fri, 3 Sep 2021 08:04:52 GMT, Andrey Turbanov 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. >>