Skip to content

Hoist counter updates out of the CentralFreeList::InsertRange lock. - #724

Closed
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_980025674
Closed

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_980025674

Conversation

@copybara-service

Copy link
Copy Markdown

Hoist counter updates out of the CentralFreeList::InsertRange lock.

num_same_spans_, counter_, and num_spans_returned_ are lock-free StatsCounters
updated via LossyAdd; moving their updates past the lock scope narrows the
critical section. Single-threaded accuracy is unchanged; under concurrency the
counters become best-effort.

num_same_spans_, counter_, and num_spans_returned_ are lock-free StatsCounters
updated via LossyAdd; moving their updates past the lock scope narrows the
critical section.  Single-threaded accuracy is unchanged; under concurrency the
counters become best-effort.

PiperOrigin-RevId: 980025674
@copybara-service copybara-service Bot closed this Sep 13, 2026
@copybara-service
copybara-service Bot deleted the test_980025674 branch September 13, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant