From ec5377ba14a797ff341bce3838b28204d0b679ce Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 20 Oct 2025 05:14:44 +0530 Subject: [PATCH] Remove unnecessary GIL acquisition in PerfEventArray --- src/maps/perf_event_array.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/maps/perf_event_array.cpp b/src/maps/perf_event_array.cpp index 56f4959..a14d11b 100644 --- a/src/maps/perf_event_array.cpp +++ b/src/maps/perf_event_array.cpp @@ -81,7 +81,6 @@ void PerfEventArray::sample_callback_wrapper(void *ctx, int cpu, void *data, } catch (const py::error_already_set &e) { PyErr_Print(); } catch (const std::exception &e) { - py::gil_scoped_acquire acquire; py::print("C++ error in perf callback:", e.what()); } }