Replace LinkedList by a more performant collection

This is a semi-automatic change.
See https://errorprone.info/bugpattern/JdkObsolete for the rationale.

Test: make
Bug: 221046110
Change-Id: I15328005007ddc58f56604f6064c30fbed2c01a6
(cherry picked from commit 1c8715261d360cc1b3e43b03756d15b21a3b4063)
Merged-In:I15328005007ddc58f56604f6064c30fbed2c01a6
3 files changed