Remove unnecessary GIL acquisition in PerfEventArray

This commit is contained in:
Pragyansh Chaturvedi
2025-10-20 05:14:44 +05:30
parent a3c3dbe141
commit ec5377ba14

View File

@ -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());
}
}