Question on small optimization

Dmitry Zaslavsky dmitry.zaslavsky at gmail.com
Tue Dec 23 22:04:47 UTC 2025


Hello loom developers, thank you for your great work.

Quick question:
I must be missing something very obvious, but why not move the fields

threadLocalRandomSeed
threadLocalRandomSecondarySeed
ThreadLocalRandomProbe


Into FieldHolder
And have ThreadLocalRandom always just use carrierThread
The benefit would be a smaller size for VirtualThread and I would argue no worse properties for TLR?
Thanks for your time.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20251223/ab591264/attachment.htm>


More information about the loom-dev mailing list