[PATCH] D39619: Correct atexit(3) support in TSan/NetBSD

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 02:26:32 PST 2017


dvyukov added a comment.

> Hmm, I might be doing something incorrectly, but there is a problem with Vector. We fire the destructor for this LIFO container.. before actually calling atexit(3) functions from libc.

Right, there is also the dtor.
I've mailed https://reviews.llvm.org/D39721 which should enable this and all other similar use-cases.
Spreading this "linker-initialized ctors/no dtors plague" throughout the code base will lead to maintenance pain long term. This is just a small, local functionality and you had to write a custom container for it.


Repository:
  rL LLVM

https://reviews.llvm.org/D39619





More information about the llvm-commits mailing list