commit | 36bf21665b43adc2485167cbb3a044dbdf4931ee | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Mar 20 15:40:37 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu Mar 20 15:40:37 2014 -0700 |
tree | e5831941fc6b6fc80da0ea35110a5c5bfa1c1d56 | |
parent | afb21d16bd2267f7f34e63a5b5105f7572455d22 [diff] [blame] |
Add Heap::RunningOnValgrind and call it from the spaces. Makes it easier to disable valgrind support. Change-Id: I1bde792f1b76a2dd968fa03c6142e92fcc3670b0
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h index eb53ba9..f650005 100644 --- a/runtime/gc/heap.h +++ b/runtime/gc/heap.h
@@ -553,6 +553,9 @@ void RemoveRememberedSet(space::Space* space); bool IsCompilingBoot() const; + bool RunningOnValgrind() const { + return running_on_valgrind_; + } bool HasImageSpace() const; private: