RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v26]

Alan Bateman alanb at openjdk.org
Tue Jun 27 14:17:16 UTC 2023


On Tue, 27 Jun 2023 14:07:43 GMT, Glavo <duke at 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


More information about the core-libs-dev mailing list