On Sun, 26 Feb 2023 20:12:09 GMT, Andrey Turbanov <[email protected]> wrote:

> LinkedList is used in a few places in `ServerImpl`.
> There is only add/iterator/clear/size calls on this lists. No removes from 
> the head or something like this. ArrayList should be preferred as more 
> efficient and widely used (more chances for JIT) collection.

This pull request has now been integrated.

Changeset: 88151758
Author:    Andrey Turbanov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/881517586d7b6d26c5589c3459902eb964ce9030
Stats:     9 lines in 1 file changed: 1 ins; 2 del; 6 mod

8303216: Prefer ArrayList to LinkedList in sun.net.httpserver.ServerImpl

Reviewed-by: jpai, vtewari, stsypanov, dfuchs

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

PR: https://git.openjdk.org/jdk/pull/12756

Reply via email to