Skip to content

Fix spurious context clear when thread detached from wallclock profiling#6836

Merged
richardstartin merged 1 commit into
masterfrom
rgs/fix-detach
Mar 22, 2024
Merged

Fix spurious context clear when thread detached from wallclock profiling#6836
richardstartin merged 1 commit into
masterfrom
rgs/fix-detach

Conversation

@richardstartin
Copy link
Copy Markdown
Contributor

What Does This Do

#6261 introduced a regression by conflating detachment from wallclock profiling with clearing profiling context, but sometimes we have to detach the current thread to avoid signalling it when it goes off CPU in certain states (e.g. to workaround a JDK bug where interrupted socket connects do not reduce the timeout before resuming) but the current thread should retain its context for all purposes.

Motivation

Additional Notes

Jira ticket: [PROJ-IDENT]

@richardstartin richardstartin requested a review from a team as a code owner March 22, 2024 17:48
@richardstartin richardstartin merged commit b856443 into master Mar 22, 2024
@richardstartin richardstartin deleted the rgs/fix-detach branch March 22, 2024 18:24
@github-actions github-actions Bot added this to the 1.32.0 milestone Mar 22, 2024
@PerfectSlayer PerfectSlayer changed the title fix spurious context clear when thread detached from wallclock profiling Fix spurious context clear when thread detached from wallclock profiling Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants