Skip to content

Fix profiling race condition#708

Open
pmcollins wants to merge 2 commits intomainfrom
profiling-fix
Open

Fix profiling race condition#708
pmcollins wants to merge 2 commits intomainfrom
profiling-fix

Conversation

@pmcollins
Copy link
Copy Markdown
Contributor

Fix a race condition where snapshot profiling could stop emitting data. When a span ended, pause_after() could clear the wakeup event after start() had already set it, so the loop thread would block indefinitely on wait(). Now we just clear the event inline, right before the wait.

Also set the logs endpoint when snapshot profiler is enabled.

@pmcollins pmcollins marked this pull request as ready for review April 6, 2026 14:43
@pmcollins pmcollins requested review from a team as code owners April 6, 2026 14:43
Copy link
Copy Markdown
Contributor

@JWinermaSplunk JWinermaSplunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this require any test changes?

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.

2 participants