onnxruntime
c841f40a - Address review feedback: leak-safe callback ref, restore test severity

Commit
17 days ago
Address review feedback: leak-safe callback ref, restore test severity - Store the user logging callback as a raw PyObject* (intentionally leaked at shutdown) instead of a global py::object, so its reference is never DECREF'd during static destruction / module unload after interpreter finalization. - Do all INCREF/DECREF under the GIL; keep the refcount-free pre-check under the mutex alone and clarify the lock-order comment. - Restore the default (Warning) logger severity in the Python test so the Verbose level it sets does not leak into the rest of the suite. - Add trailing newline in the set_default_logger_callback docstring.
Author
Committer
Parents
Loading