RFR: 8303266: Prefer ArrayList to LinkedList in JImageTask
Andrey Turbanov
aturbanov at openjdk.org
Mon Feb 27 21:01:32 UTC 2023
`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.
-------------
Commit messages:
- [PATCH] Prefer ArrayList to LinkedList in JImageTask
Changes: https://git.openjdk.org/jdk/pull/12760/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12760&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8303266
Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/12760.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12760/head:pull/12760
PR: https://git.openjdk.org/jdk/pull/12760
More information about the core-libs-dev
mailing list