lysnikolaou commented on PR #43671:
URL: https://github.com/apache/arrow/pull/43671#issuecomment-2338301794

   > But did we actually audit the code to make sure nothing relies on the GIL? 
Otherwise we're just asking for trouble.
   
   Since a big chuck of PyArrow relies on Cython, that means that a lot of the 
free-threading heavy-lifting will be performed by Cython.
   
   Regarding the C/C++ code, I had a look around the codebase, trying to 
manually search for global state, but I didn't find any instances that might 
create problems. I also talked a bit with @jorisvandenbossche about that during 
a call, and adding threading-related tests was something he wanted to do as 
well.
   
   As a note, being agressive with declaring support for free-threading is 
probably the way to go, since bugs will always be there, and they will be much 
harder to surface if widely-used packages do no declare support. Remember that 
the GIL is enabled for the whole process, even if just one package hasn't 
declared support.


-- 
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