We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf0ec5 commit 8b1e4a2Copy full SHA for 8b1e4a2
1 file changed
python/pyarrow/src/arrow/python/helpers.cc
@@ -317,6 +317,8 @@ void GetUuidStaticSymbols() {
317
}
318
319
#ifndef Py_GIL_DISABLED
320
+ // Since ImportModule can release the GIL, another thread could have
321
+ // already initialized the static data.
322
if (uuid_static_initialized) {
323
return;
324
@@ -334,6 +336,8 @@ void InitUuidStaticData() {
334
336
335
337
#else
338
void InitUuidStaticData() {
339
+ // NOTE: This is called with the GIL held. We needn't (and shouldn't,
340
+ // to avoid deadlocks) use an additional C++ lock (ARROW-10519).
341
342
343
0 commit comments