Re: [OpenJDK 2D-Dev] 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 >>

Re: [OpenJDK 2D-Dev] RFR: 8271603: Unnecessary Vector usage in java.desktop [v6]

2021-09-02 Thread Sergey Bylokhov
On Wed, 1 Sep 2021 19:46:51 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. >>

Re: [OpenJDK 2D-Dev] RFR: 8271603: Unnecessary Vector usage in java.desktop [v6]

2021-09-01 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.