summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-12-21 21:09:31 +0000
committerDan Liew <dan@su-root.co.uk>2018-12-21 21:09:31 +0000
commitd2c6af7358db90682b4a3ab18707ac381fc4127a (patch)
tree65c5a41f38b1a71d21c9321a8028bfcbe007b180 /compiler-rt/lib/scudo
parent9fc3a5f4383408f9baf660c28220285dbea29cbc (diff)
downloadbcm5719-llvm-d2c6af7358db90682b4a3ab18707ac381fc4127a.tar.gz
bcm5719-llvm-d2c6af7358db90682b4a3ab18707ac381fc4127a.zip
Introduce `AddressSpaceView` template parameter to `SizeClassAllocator64`.
Summary: This is a follow up patch to r349138. This patch makes a `AddressSpaceView` a type declaration in the allocator parameters used by `SizeClassAllocator64`. For ASan, LSan, and the unit tests the AP64 declarations have been made templated so that `AddressSpaceView` can be changed at compile time. For the other sanitizers we just hard-code `LocalAddressSpaceView` because we have no plans to use these allocators in an out-of-process manner. rdar://problem/45284065 Reviewers: kcc, dvyukov, vitalybuka, cryptoad, eugenis, kubamracek, george.karpenkov Subscribers: #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D55764 llvm-svn: 349954
Diffstat (limited to 'compiler-rt/lib/scudo')
-rw-r--r--compiler-rt/lib/scudo/scudo_allocator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator.h b/compiler-rt/lib/scudo/scudo_allocator.h
index 869e74a5ef2..814bb08ab01 100644
--- a/compiler-rt/lib/scudo/scudo_allocator.h
+++ b/compiler-rt/lib/scudo/scudo_allocator.h
@@ -81,6 +81,7 @@ struct AP64 {
typedef NoOpMapUnmapCallback MapUnmapCallback;
static const uptr kFlags =
SizeClassAllocator64FlagMasks::kRandomShuffleChunks;
+ using AddressSpaceView = LocalAddressSpaceView;
};
typedef SizeClassAllocator64<AP64> PrimaryT;
#else
OpenPOWER on IntegriCloud