Content-Length: 316398 | pFad | https://github.com/python/cpython/pull/129336

58 gh-112075: Remove critical section in dict.get by eendebakpt · Pull Request #129336 · python/cpython · GitHub
Skip to content

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

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

gh-112075: Remove critical section in dict.get#129336
colesbury merged 3 commits intopython:mainfrom
eendebakpt:dict_get

Conversation

@eendebakpt
Copy link
Copy Markdown
Contributor

@eendebakpt eendebakpt commented Jan 27, 2025

  • 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/129336

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy