| 284b4eb2 | 01-Apr-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
libc/stdlib: Add __cxa_thread_atexit_impl() hook.
The __cxa_thread_atexit_impl() helper is needed for mainly c++ runtime libraries to support destructors for thread local storage using LIFO. The _th
libc/stdlib: Add __cxa_thread_atexit_impl() hook.
The __cxa_thread_atexit_impl() helper is needed for mainly c++ runtime libraries to support destructors for thread local storage using LIFO. The _thread_finalize() is implemented based on OpenBSD variant with few exceptions: less restrictive destructors calling scheme and c++ runtime preserves implementation details how it orders (or even uses) this libc addition. Based on other BSDs and libsdc++/libc++ code this is least intrusive method to have pthread_exit() hooks in libc runtime. By the looks, in base system nothing was using libstdc++ internal version.
While there, enable __cxa_thread_atexit_impl() usage in gcc80 libstdc++.
show more ...
|