[PATCH] [libc++] Fix PR22606 - Leak pthread_key with static storage duration to ensure all of thread-local destructors are called.
Eric Fiselier
eric at efcs.ca
Fri May 29 14:01:07 PDT 2015
Since a rI'm sitting on this for a bit until I determine a couple of things.
1. Could libc++ use std::atexit to call the destructor function before destroying the pthread key?
2. What does the standard say about race conditions between thread-exit and program-exit? Do all created threads have to be terminated before std::exit() begins?
3. How do the pthread_key thread-exit destructors fit into the steps C++ takes at a thread exit?
http://reviews.llvm.org/D8802
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list