Changing traceSource to volatile rather than an AtomicInteger by dougqh · Pull Request #10614 · DataDog/dd-trace-java

@dougqh

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.

mcculls

@dougqh

@dougqh

@dougqh dougqh deleted the dougqh/optimize-ptags branch

February 18, 2026 14:58