pytorch/torch/csrc/monitor
Joe Wang 451c233936 leaking c++ singleton specifically (#143509)
Summary:
fix forward for S477887

leaking c++ singleton specifically

when c++ shutdown, it tries to destruct the singleton and acquire GIL, at this moment python runtime exists already, causing undefined behavior.
Leaking here specifically so that we won't try to destroy singleton at the shutdown phase

Test Plan: n/a

Differential Revision: D67400633

Pull Request resolved: https://github.com/pytorch/pytorch/pull/143509
Approved by: https://github.com/c-p-i-o
2024-12-19 09:27:07 +00:00
..
counters.cpp [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
counters.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
events.cpp leaking c++ singleton specifically (#143509) 2024-12-19 09:27:07 +00:00
events.h [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
python_init.cpp [1/N] Avoid copy in std::get (#141812) 2024-12-01 03:53:35 +00:00
python_init.h [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00