diff options
author | 2015-05-20 12:30:59 -0700 | |
---|---|---|
committer | 2015-07-13 17:38:40 -0700 | |
commit | 1e13374baf7dfaf442ffbf9809c37c131d681eaf (patch) | |
tree | 9a8a53295a8389d7ec10accf3efb8785a97a3599 /runtime/gc/allocator/rosalloc.h | |
parent | f68c8545382925062da2b87169ca2b5314f0b431 (diff) |
Generalize Valgrind annotations in ART to support ASan.
Also add redzones around non-fixed mem_map(s).
Also extend -Wframe-larger-than limit to enable arm64 ASan build.
Change-Id: Ie572481a25fead59fc8978d2c317a33ac418516c
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r-- | runtime/gc/allocator/rosalloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h index 0fcfe72b06..c356a39531 100644 --- a/runtime/gc/allocator/rosalloc.h +++ b/runtime/gc/allocator/rosalloc.h @@ -253,7 +253,7 @@ class RosAlloc { // Dump the run metadata for debugging. std::string Dump(); // Verify for debugging. - void Verify(Thread* self, RosAlloc* rosalloc, bool running_on_valgrind) + void Verify(Thread* self, RosAlloc* rosalloc, bool running_on_memory_tool) EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_) EXCLUSIVE_LOCKS_REQUIRED(Locks::thread_list_lock_); @@ -503,7 +503,7 @@ class RosAlloc { const size_t page_release_size_threshold_; // Whether this allocator is running under Valgrind. - bool running_on_valgrind_; + bool is_running_on_memory_tool_; // The base address of the memory region that's managed by this allocator. uint8_t* Begin() { return base_; } @@ -561,7 +561,7 @@ class RosAlloc { public: RosAlloc(void* base, size_t capacity, size_t max_capacity, PageReleaseMode page_release_mode, - bool running_on_valgrind, + bool running_on_memory_tool, size_t page_release_size_threshold = kDefaultPageReleaseSizeThreshold); ~RosAlloc(); |