[PATCH] D38244: [scudo] Scudo thread specific data refactor, part 3
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 11:13:15 PDT 2017
cryptoad created this revision.
Herald added subscribers: mgorny, srhines.
Previous parts: https://reviews.llvm.org/D38139, https://reviews.llvm.org/D38183.
In this part of the refactor, we abstract the Linux vs Android TSD dissociation
in favor of a Exclusive vs Shared one, allowing for easier platform introduction
and configuration.
Most of this change consist of shuffling the files around to reflect the new
organization.
We introduce `scudo_platform.h` where platform specific definition lie. This
involves the TSD model and the platform specific allocator parameters. In an
upcoming CL, those will be configurable via defines, but we currently stick
with conservative defaults.
https://reviews.llvm.org/D38244
Files:
lib/scudo/CMakeLists.txt
lib/scudo/scudo_allocator.cpp
lib/scudo/scudo_allocator.h
lib/scudo/scudo_platform.h
lib/scudo/scudo_tls.h
lib/scudo/scudo_tls_android.cpp
lib/scudo/scudo_tls_android.inc
lib/scudo/scudo_tls_linux.cpp
lib/scudo/scudo_tls_linux.inc
lib/scudo/scudo_tsd.h
lib/scudo/scudo_tsd_exclusive.cpp
lib/scudo/scudo_tsd_exclusive.inc
lib/scudo/scudo_tsd_shared.cpp
lib/scudo/scudo_tsd_shared.inc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38244.116577.patch
Type: text/x-patch
Size: 22231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/3ebf0231/attachment.bin>
More information about the llvm-commits
mailing list