[PATCH] D32440: [scudo] Move thread local variables into their own files

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 13:46:12 PDT 2017


cryptoad added inline comments.


================
Comment at: lib/scudo/scudo_tls_linux.cpp:59
+void initThreadMaybe() {
+  if (LIKELY(ScudoThreadState != ThreadNotInitialized))
+    return;
----------------
dvyukov wrote:
> The fast path needs to be inlinable (defined in header file).
Previous reviews of similar changes have edged towards less ifdef and a clear separation of the platform specific codes in separate cpp, yielding less complicated code. The issue I can see happening is multiplication of ifdefs in this header when SANITIZER_ANDROID comes into play next if defining the fast path in the header. Is this OK?



https://reviews.llvm.org/D32440





More information about the llvm-commits mailing list