On Mon, 27 Feb 2023 11:33:38 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> `LinkedList` is used as a field > `jdk.tools.jimage.JImageTask.OptionsValues#jimages` > It's created, filled (with `add`) and then iterated. 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: fa1cebed Author: Andrey Turbanov <aturba...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/fa1cebedb5de10e34e9d0cd1d8a563c56b562f54 Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod 8303266: Prefer ArrayList to LinkedList in JImageTask Reviewed-by: jlaskey ------------- PR: https://git.openjdk.org/jdk/pull/12760