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

Conservative GC reporting for suspended green threads #2022

Merged

Conversation

cshung
Copy link
Member

@cshung cshung commented Oct 7, 2022

The GC changes come from dotnet/runtime#76737 which is required for conservative reporting. Once we have that PR merged, we should take an FI instead to avoid unnecessary conflicts.

The green thread changes slightly extended the lifetime of the SuspendedGreenThread object so that I can use it for GC reporting. The change simply loop through all of them and reported all the stack segments conservatively.

In debug mode, the process terminates with an exit code 1073807370 == 0x4001000a, this is because we hit an assert here. I assume this will be handled as part of #2018

src/coreclr/vm/gcenv.ee.cpp Show resolved Hide resolved
@cshung cshung force-pushed the public/green-threads-gc-reporting branch 2 times, most recently from a2030f8 to 5f3160b Compare October 12, 2022 23:29
@cshung cshung force-pushed the public/green-threads-gc-reporting branch from 5f3160b to 07dbe3f Compare October 12, 2022 23:29
@cshung cshung merged commit 54d3bf2 into dotnet:feature/green-threads Oct 14, 2022
@cshung cshung deleted the public/green-threads-gc-reporting branch October 14, 2022 23:53
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.

None yet

2 participants