On 18/11/2025 17:44, James Yuzawa wrote:
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.


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.

-Alan

Reply via email to