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

Modify async stacks to keep track of a vector of ASRs #642

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

jesswong
Copy link
Contributor

@jesswong jesswong commented Nov 7, 2024

This diff updates async stack to keep track of the ASRs via a std::vector instead of a TLS key. This will allow us to keep track of the different ASRs for all threads, instead of just the crashing thread.

We also store the thread id to reduce ambiguity.

@jesswong jesswong requested a review from ispeters November 7, 2024 01:40
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 7, 2024
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
@jesswong
Copy link
Contributor Author

Latest changes were tested internally

source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
source/async_stack.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@ispeters ispeters left a comment

Choose a reason for hiding this comment

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

LGTM!

source/async_stack.cpp Outdated Show resolved Hide resolved
@jesswong jesswong merged commit ef9db15 into facebookexperimental:main Nov 26, 2024
53 checks passed
@jesswong jesswong deleted the update-async-stacks branch November 26, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants