Skip to content

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

Closed
ericsnowcurrently wants to merge 7 commits into
python:mainfrom
ericsnowcurrently:global-granular-locks
Closed

gh-100227: Add Missing Locks for Specific Global Runtime State#105470
ericsnowcurrently wants to merge 7 commits into
python:mainfrom
ericsnowcurrently:global-granular-locks

Conversation

@ericsnowcurrently

@ericsnowcurrentlyericsnowcurrently commented Jun 7, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

I've split this up into 3 PRs.

Sign up for freeto 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

@ericsnowcurrently@bedevere-bot