-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
Description
Concurrent accesses from multiple threads to the same cell object do not scale well in the free-threaded build. There are two problems:
-
LOAD_DEREFcallsPyCell_GetRef, which acquires the per-object lock on the cell instance. We'll need to use_Py_TryXGetRefor similar to safely access the value. -
PyCell_GetRefreturns a strong reference andLOAD_DEREFwill need a_PyStackRefto handle objects that use deferred reference counting.
Linked PRs
corona10
Metadata
Metadata
Assignees
Labels
Projects
Status
Done