summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-02-02 13:09:59 -0800
committerChristopher Ferris <cferris@google.com>2016-02-02 13:22:40 -0800
commit701bb65511aed14da6c51179619785e5706fa5a6 (patch)
tree04cffebe6ad88578e7212d690318563b4bb3bfa5 /libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
parent4821db1b3ecc14828d4acf4abed26bb7d8b8cf6a (diff)
Remove the unused TrackHeader structure.
Change-Id: I07ae5de717e1fcfbe5dfe552a531db9f630da622
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_unit_tests.cpp')
-rw-r--r--libc/malloc_debug/tests/malloc_debug_unit_tests.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp b/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
index 4b8aaeba1..9fc8a5788 100644
--- a/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
+++ b/libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
@@ -67,14 +67,10 @@ __END_DECLS
constexpr char DIVIDER[] =
"6 malloc_debug *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n";
-constexpr uint32_t TRACK_HEADER = 0x2;
-constexpr uint32_t BACKTRACE_HEADER = 0x4;
+constexpr uint32_t BACKTRACE_HEADER = 0x1;
static size_t get_tag_offset(uint32_t flags = 0, size_t backtrace_frames = 0) {
size_t offset = BIONIC_ALIGN(sizeof(Header), sizeof(uintptr_t));
- if (flags & TRACK_HEADER) {
- offset += BIONIC_ALIGN(sizeof(TrackHeader), sizeof(uintptr_t));
- }
if (flags & BACKTRACE_HEADER) {
offset += BIONIC_ALIGN(sizeof(BacktraceHeader) + sizeof(uintptr_t) * backtrace_frames, sizeof(uintptr_t));
}