Skip to content

gh-112075: Remove critical section in dict.get - #129336

Merged
colesbury merged 3 commits into
python:mainfrom
eendebakpt:dict_get
Jan 28, 2025
Merged

colesbury merged 3 commits into
python:mainfrom
eendebakpt:dict_get

Conversation

@eendebakpt

@eendebakpt eendebakpt commented Jan 27, 2025 •

Copy link
Copy Markdown
Contributor
  • The dict.get implementation uses _Py_dict_lookup_threadsafe which is thread-safe, so we remove the critical section from the argument clinic.
  • Add a test for concurrent dict get and set operations
@colesbury
colesbury enabled auto-merge (squash) January 28, 2025 21:33
@colesbury

Copy link
Copy Markdown
Contributor

Thanks!

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

2 participants