Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConsider adding a TLS flag that panics if certain APIs are used while GC is in progress #25349
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to have a solution for #25345 that provides more consistent failures to make it easier to notice when we're writing invalid code. One possibility is to set a flag that's stored in TLS when GC begins (for example), and make APIs like these assert that the flag is false.