NVIDIA / stdexec

`std::execution`, the proposed C++ framework for asynchronous and parallel programming.
Apache License 2.0
1.58k stars 161 forks source link

the NUMA implementation of `static_thread_pool` leaks an object at shutdown #1370

Open ericniebler opened 3 months ago

ericniebler commented 3 months ago

1369 "fixed" a static-initialization-order-fiasco bug in static_thread_pool teardown by constructing a global std::vector and never destroying it. if stdexec is used in a .so that is repeatedly loaded and unloaded with dlopen/dlclose, it will leak an unbounded amount of memory.

find a better solution.