diff options
author | Ian Rogers <irogers@google.com> | 2014-06-06 15:58:22 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-06-06 16:27:45 -0700 |
commit | 576ca0cd692c0b6ae70e776de91015b8ff000a08 (patch) | |
tree | de632fae7ee9f096e7a2c54a7fcdace8f6ae7106 /runtime/gc | |
parent | e21bf0099117b82963cdf7f95a1b8dabfcf29397 (diff) | |
download | art-576ca0cd692c0b6ae70e776de91015b8ff000a08.zip art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.gz art-576ca0cd692c0b6ae70e776de91015b8ff000a08.tar.bz2 |
Reduce header files including header files.
Main focus is getting heap.h out of runtime.h.
Change-Id: I8d13dce8512816db2820a27b24f5866cc871a04b
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); |