commit | 3f84f2cb3cadc25d75e1e3e2c1bc26c1a671f336 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Mon Apr 25 19:40:34 2016 +0100 |
committer | Vladimir Marko <vmarko@google.com> | Mon Apr 25 20:28:54 2016 +0100 |
tree | d041955d18c6ee8962937f50e0b0d7ffd7df0708 | |
parent | 2712a078c74050f787900765830f7f33d8bd75e6 [diff] [blame] |
Fix valgrind tests: mark allocated space as defined. Follow-up to https://android-review.googlesource.com/219700 Bug: 28173563 Bug: 28256882 Change-Id: I4e8e8d3202fd01ab48d86b3a6b92302524df66bb
diff --git a/runtime/base/arena_allocator.h b/runtime/base/arena_allocator.h index 4b745f0..6c1a898 100644 --- a/runtime/base/arena_allocator.h +++ b/runtime/base/arena_allocator.h
@@ -364,7 +364,7 @@ private: void* AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind); - void* AllocFromNewArena(size_t bytes); + uint8_t* AllocFromNewArena(size_t bytes); static constexpr size_t kAlignment = 8;