RFR: 8329968: os::random should be random
David Holmes
dholmes at openjdk.org
Tue May 28 02:27:08 UTC 2024
On Tue, 9 Apr 2024 16:55:07 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Random distribution of ihashes. Atm, ihashes are always the same for the same sequence of System.identityHashCode.
And this is a problem because??? Conversely if you change the ihashes every time an application runs what affect does this have on the general performance of hashmaps? Does this not introduce some instability? Could some seeds lead to pathological hashmap behaviour?
> We use os::random to fuzzing gtests
Can you not use FastRandom for that? Or employ the same technique that FastRandom does?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18702#issuecomment-2134245658
More information about the hotspot-runtime-dev
mailing list