pitrou opened a new pull request, #49943:
URL: https://github.com/apache/arrow/pull/49943

   ### Rationale for this change
   
   In https://github.com/apache/arrow/pull/38637 we protected the `OwnedRef` 
and `OwnedRefNoGIL` destructors against being called when the Python 
interpreter is being finalized, but we didn't address other classes with custom 
destructors, such as `PyBuffer` and `NumPyBuffer`.
   
   ### What changes are included in this PR?
   
   Avoid executing Python C API code if the interpreter is finalized while a 
C++ destructor runs.
   
   ### Are these changes tested?
   
   Only manually, using the initial reproducer in 
https://github.com/apache/arrow/issues/45214.
   
   ### Are there any user-facing changes?
   
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to