diff options
| author | 2014-03-31 15:32:56 +0100 | |
|---|---|---|
| committer | 2014-03-31 15:34:32 +0100 | |
| commit | 8a76f1ed1d2f39beae3039b7b0938ca44b7f8bd6 (patch) | |
| tree | 20096e426b048a2786b72466c387fb4cff1ee95a /compiler | |
| parent | 7414375acad6170606903013d331f653173c299f (diff) | |
Mark ScopedArenaAllocator's allocations undefined for Valgrind.
Bug: 13659516
Change-Id: Id538c1bb1d256173a1f3db5ae0be920420da6d5d
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/utils/scoped_arena_allocator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/utils/scoped_arena_allocator.cc b/compiler/utils/scoped_arena_allocator.cc index a78d28792b..bd78eaef0d 100644 --- a/compiler/utils/scoped_arena_allocator.cc +++ b/compiler/utils/scoped_arena_allocator.cc @@ -99,6 +99,7 @@ void* ArenaStack::AllocValgrind(size_t bytes, ArenaAllocKind kind) { } 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; } |