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

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 10:07:08 PDT 2017


cryptoad created this revision.
Herald added a subscriber: mgorny.

This change introduces scudo_tls.h & scudo_tls_linux.cpp, where we move the
thread local variables used by the allocator, namely the cache, quarantine
cache & prng. `ScudoThreadContext` will hold those. This patch doesn't
introduce any new platform support yet, this will be the object of a later
patch. This also changes the PRNG so that the structure can be POD.


https://reviews.llvm.org/D32440

Files:
  lib/scudo/CMakeLists.txt
  lib/scudo/scudo_allocator.cpp
  lib/scudo/scudo_allocator.h
  lib/scudo/scudo_tls.h
  lib/scudo/scudo_tls_linux.cpp
  lib/scudo/scudo_utils.cpp
  lib/scudo/scudo_utils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32440.96415.patch
Type: text/x-patch
Size: 22623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170424/753c2dc3/attachment.bin>


More information about the llvm-commits mailing list