Remove use of AtomicReferenceArray in RadixTreeCache by mcculls · Pull Request #10600 · DataDog/dd-trace-java
Instead we tolerate racing to cache sub-arrays, like we do for individual values. This does mean two or more threads might create the same sub-array, with only one winning, but this should be rare with later calls picking up the same sub-array.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters