diff options
Diffstat (limited to 'runtime/gc')
-rw-r--r-- | runtime/gc/accounting/space_bitmap.cc | 6 | ||||
-rw-r--r-- | runtime/gc/accounting/space_bitmap.h | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/runtime/gc/accounting/space_bitmap.cc b/runtime/gc/accounting/space_bitmap.cc index 3cb8d94..436a5b5 100644 --- a/runtime/gc/accounting/space_bitmap.cc +++ b/runtime/gc/accounting/space_bitmap.cc @@ -72,6 +72,12 @@ void SpaceBitmap<kAlignment>::SetHeapLimit(uintptr_t new_end) { } template<size_t kAlignment> +std::string SpaceBitmap<kAlignment>::Dump() const { + return StringPrintf("%s: %p-%p", name_.c_str(), reinterpret_cast<void*>(HeapBegin()), + reinterpret_cast<void*>(HeapLimit())); +} + +template<size_t kAlignment> void SpaceBitmap<kAlignment>::Clear() { if (bitmap_begin_ != NULL) { // This returns the memory to the system. Successive page faults will return zeroed memory. diff --git a/runtime/gc/accounting/space_bitmap.h b/runtime/gc/accounting/space_bitmap.h index 50d15c6..0849171 100644 --- a/runtime/gc/accounting/space_bitmap.h +++ b/runtime/gc/accounting/space_bitmap.h @@ -26,7 +26,6 @@ #include "base/mutex.h" #include "gc_allocator.h" #include "globals.h" -#include "mem_map.h" #include "object_callbacks.h" namespace art { @@ -34,6 +33,7 @@ namespace art { namespace mirror { class Object; } // namespace mirror +class MemMap; namespace gc { namespace accounting { @@ -183,10 +183,7 @@ class SpaceBitmap { name_ = name; } - std::string Dump() const { - return StringPrintf("%s: %p-%p", name_.c_str(), reinterpret_cast<void*>(HeapBegin()), - reinterpret_cast<void*>(HeapLimit())); - } + std::string Dump() const; const void* GetObjectWordAddress(const mirror::Object* obj) const { uintptr_t addr = reinterpret_cast<uintptr_t>(obj); |