java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

fix: fix race in Uuids.ClockSeqAndNodeContainer double-checked init

Open jasonk000 opened this issue 5 months ago • 0 comments

Reordered writes in ClockSeqAndNodeContainer.get() to assign val before setting the volatile initialized flag.

The updated sequence ensures val is fully constructed and visible before publication via the volatile write.

jasonk000 avatar Aug 10 '25 07:08 jasonk000