This is an important core language issue because a fundamental invariant is that data is being destroyed appropriately.
Most C++ implementation use atexit() to queue destruction of function-level statics. I assume the new thread_local C++ facility is typically implemented with the help of pthread_key_create().
We need to devise the appropriate mechanisms.
Comment #1 by robert.schadek — 2024-12-13T19:02:24Z