commit | 8a76f1ed1d2f39beae3039b7b0938ca44b7f8bd6 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Mon Mar 31 15:32:56 2014 +0100 |
committer | Vladimir Marko <vmarko@google.com> | Mon Mar 31 15:34:32 2014 +0100 |
tree | 20096e426b048a2786b72466c387fb4cff1ee95a | |
parent | 7414375acad6170606903013d331f653173c299f [diff] |
Mark ScopedArenaAllocator's allocations undefined for Valgrind. Bug: 13659516 Change-Id: Id538c1bb1d256173a1f3db5ae0be920420da6d5d
diff --git a/compiler/utils/scoped_arena_allocator.cc b/compiler/utils/scoped_arena_allocator.cc index a78d287..bd78eae 100644 --- a/compiler/utils/scoped_arena_allocator.cc +++ b/compiler/utils/scoped_arena_allocator.cc
@@ -99,6 +99,7 @@ } CurrentStats()->RecordAlloc(bytes, kind); top_ptr_ = ptr + rounded_bytes; + VALGRIND_MAKE_MEM_UNDEFINED(ptr, bytes); VALGRIND_MAKE_MEM_NOACCESS(ptr + bytes, rounded_bytes - bytes); return ptr; }