Skip to content

Commit ec5377b

Browse files
committed
Remove unnecessary GIL acquisition in PerfEventArray
1 parent a3c3dbe commit ec5377b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/maps/perf_event_array.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ void PerfEventArray::sample_callback_wrapper(void *ctx, int cpu, void *data,
8181
} catch (const py::error_already_set &e) {
8282
PyErr_Print();
8383
} catch (const std::exception &e) {
84-
py::gil_scoped_acquire acquire;
8584
py::print("C++ error in perf callback:", e.what());
8685
}
8786
}

0 commit comments

Comments
 (0)