On Tue, 27 Jun 2023 14:07:43 GMT, Glavo <d...@openjdk.org> wrote: > > What I suggest is to prepare the array only once (in the static block as it > > is now), but have each class that use it encapsulate is own copy - obtained > > from clone(). Surely 256 shorts is not so large that we can't have two > > arrays? > > The point is that it doesn't make any sense, so I don't feel like we should > pay anything for it.
Daniel makes a good point. Sadly, jdk.internal.util is exported to other modules so it does need to be looked at from an integrity perspective. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14578#discussion_r1243819226