diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2019-10-04 15:46:34 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2019-10-04 15:46:34 +0000 |
commit | 3154ce262c73bf5daecedbad78183d1d3d1fc648 (patch) | |
tree | bd87eb3bccdb0d5b7652b63c7e72748de79755e6 /lib/scudo/standalone/tests/combined_test.cpp | |
parent | 337963066ac61242a234ba0a231656531c1edfed (diff) | |
download | compiler-rt-3154ce262c73bf5daecedbad78183d1d3d1fc648.tar.gz |
[scudo][standalone] Make malloc_info return a minimal XML
Summary:
Initially, our malloc_info was returning ENOTSUP, but Android would
rather have it return successfully and write a barebone XML to the
stream, so we will oblige.
Add an associated test.
Reviewers: cferris, morehouse, hctim, eugenis, vitalybuka
Reviewed By: morehouse
Subscribers: delcypher, #sanitizers, llvm-commits
Tags: #llvm, #sanitizers
Differential Revision: https://reviews.llvm.org/D68427
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@373754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/scudo/standalone/tests/combined_test.cpp')
-rw-r--r-- | lib/scudo/standalone/tests/combined_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scudo/standalone/tests/combined_test.cpp b/lib/scudo/standalone/tests/combined_test.cpp index c9c65690a..3f971a304 100644 --- a/lib/scudo/standalone/tests/combined_test.cpp +++ b/lib/scudo/standalone/tests/combined_test.cpp @@ -101,7 +101,7 @@ template <class Config> static void testAllocator() { // returns the same chunk. This requires that all the sizes we iterate on use // the same block size, but that should be the case for 2048 with our default // class size maps. - P = Allocator->allocate(DataSize, Origin); + P = Allocator->allocate(DataSize, Origin); memset(P, Marker, DataSize); for (scudo::sptr Delta = -32; Delta < 32; Delta += 8) { const scudo::uptr NewSize = DataSize + Delta; |