Skip to content

[Python] Fix AB-BA deadlock between Python GIL and DescriptorPool mutex - #109

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_988553958
Sep 27, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_988553958

Conversation

@copybara-service

Copy link
Copy Markdown

[Python] Fix AB-BA deadlock between Python GIL and DescriptorPool mutex

Ensure all C++ locks (Program mutex, Activation mutex, once flags,
DescriptorPool mutex) precede Python GIL acquisition by releasing the GIL
in PyCelExpression::Eval, PyObjectToCelValue, and PyCelEnvInternal
constructor, while acquiring the GIL on callbacks into Python.

@copybara-service
copybara-service Bot force-pushed the test_988553958 branch 4 times, most recently from 6067d5c to 37a7bca Compare September 27, 2026 04:20
Ensure all C++ locks (Program mutex, Activation mutex, once flags,
DescriptorPool mutex) precede Python GIL acquisition by releasing the GIL
in PyCelExpression::Eval, PyObjectToCelValue, and PyCelEnvInternal
constructor, while acquiring the GIL on callbacks into Python.

PiperOrigin-RevId: 989033642
@copybara-service
copybara-service Bot merged commit 68a12b7 into main Sep 27, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_988553958 branch September 27, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant