Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0-staging] For transition profiler callbacks, always load the thread #105200

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 21, 2024

Backport of #105104 to release/8.0-staging

/cc @jkoritzinsky

Customer Impact

  • Customer reported
  • Found internally

Using a profiler for reverse P/Invokes could result in a null-reference exception from the runtime. This PR fixes the problem by loading a non-null correct value for the parameter.

Regression

  • Yes
  • No

Introduced in #69761

Testing

Added more profiler unit tests to validate the scenario.

Risk

Low risk, we've validated that the scenario works and the fix is targeted to the failing scenario.

jkoritzinsky and others added 3 commits July 21, 2024 15:16
Also, add tests for profiler callbacks on a new thread to the runtime
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@jkoritzinsky jkoritzinsky added the Servicing-consider Issue for next servicing release review label Jul 22, 2024
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

lgtm. we will take for consideration in 8.0.x

@jeffschwMSFT jeffschwMSFT added this to the 8.0.x milestone Jul 22, 2024
@rbhanda rbhanda modified the milestones: 8.0.x, 8.0.9 Jul 23, 2024
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jul 23, 2024
@jkoritzinsky jkoritzinsky merged commit a76400c into release/8.0-staging Aug 12, 2024
120 of 125 checks passed
@jkoritzinsky jkoritzinsky deleted the backport/pr-105104-to-release/8.0-staging branch August 12, 2024 22:01
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2024
@rbhanda rbhanda modified the milestones: 8.0.9, 8.0.10 Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants