Skip to content

Commit 7d2819d

Browse files
trim
1 parent 183b66d commit 7d2819d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎cuda_core/cuda/core/_cpp/resource_handles.cpp‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,12 +1524,6 @@ DevicePtrHandle deviceptr_import_ipc(const MemoryPoolHandle& h_pool, const void*
15241524
ExportDataKey key;
15251525
std::memcpy(&key.data, data, sizeof(key.data));
15261526

1527-
// The GIL must be released before the mutex is taken. Destruction runs
1528-
// in reverse declaration order, so declaring the lock first would
1529-
// reacquire the GIL while still holding the mutex, deadlocking against
1530-
// a caller that blocks on the mutex while holding the GIL (callers
1531-
// enter this function with the GIL held). Nothing in the critical
1532-
// section needs the GIL.
15331527
GILReleaseGuard gil;
15341528
std::lock_guard<std::mutex> lock(ipc_import_mutex);
15351529

0 commit comments

Comments
 (0)