[all-commits] [llvm/llvm-project] 28507a: [MLIR] Fix thread safety of the deleter in PyDense...
Fabian Tschopp via All-commits
all-commits at lists.llvm.org
Tue Jan 28 15:56:21 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28507ac62928d79f647804de4df60409b3ebb364
https://github.com/llvm/llvm-project/commit/28507ac62928d79f647804de4df60409b3ebb364
Author: Fabian Tschopp <fabian.tschopp at modular.com>
Date: 2025-01-28 (Tue, 28 Jan 2025)
Changed paths:
M mlir/lib/Bindings/Python/IRAttributes.cpp
Log Message:
-----------
[MLIR] Fix thread safety of the deleter in PyDenseResourceElementsAttribute (#124832)
In general, `PyDenseResourceElementsAttribute` can get deleted at any
time and any thread, where unlike the `getFromBuffer` call, the Python
interpreter may not be initialized and the GIL may not be held.
This PR fixes segfaults caused by `PyBuffer_Release` when the GIL is not
being held by the thread calling the deleter.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list