Changing traceSource to volatile rather than an AtomicInteger by dougqh · Pull Request #10614 · DataDog/dd-trace-java
This avoids allocated an AtomicInteger for every PTagsFactory. The concurrency needs are met through an AtomicFieldUpdater. In benchmarks, the AtomicFieldUpdater appears the same or better with lower memory overhead.
dougqh
deleted the
dougqh/optimize-ptags
branch
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