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

gh-100227: Add Missing Locks for Specific Global Runtime State #105470

Closed

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jun 7, 2023

We add the locks for the global atexit state, the global list of audit hooks, and the global allocators. The risk of a race is low in each case, but playing it safe mostly isn't a problem. (We do avoid using the allocator lock in performance-sensitive cases where the risk of a race is very, very low.)

@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review June 7, 2023 23:15
@ericsnowcurrently
Copy link
Member Author

I've split this up into 3 PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants