On 18/11/2025 17:44, James Yuzawa wrote:
I think this is a mistake that crept in with JEP 356 in JDK 17 and the follow up work. We need to create an issue in JBS to track this.Hello, I have noticed in Java 25 (and earlier versions) that calling ThreadLocalRandom.current().nextGaussian() uses the Random.nextGaussian() implementation, which is synchronized. Under heavy load in a multithreaded environment, I was detecting lock contention.
-Alan
