diff options
Diffstat (limited to 'src/gc/heap_bitmap.cc')
-rw-r--r-- | src/gc/heap_bitmap.cc | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/gc/heap_bitmap.cc b/src/gc/heap_bitmap.cc deleted file mode 100644 index cef6884374..0000000000 --- a/src/gc/heap_bitmap.cc +++ /dev/null @@ -1,49 +0,0 @@ -#include "heap_bitmap.h" -#include "space.h" - -namespace art { - -void HeapBitmap::ReplaceBitmap(SpaceBitmap* old_bitmap, SpaceBitmap* new_bitmap) { - // TODO: C++0x auto - for (Bitmaps::iterator it = bitmaps_.begin(); it != bitmaps_.end(); ++it) { - if (*it == old_bitmap) { - *it = new_bitmap; - return; - } - } - LOG(FATAL) << "bitmap " << static_cast<const void*>(old_bitmap) << " not found"; -} - -void HeapBitmap::AddSpaceBitmap(SpaceBitmap* bitmap) { - DCHECK(bitmap != NULL); - - // Check for interval overlap. - for (Bitmaps::const_iterator it = bitmaps_.begin(); it != bitmaps_.end(); ++it) { - SpaceBitmap* cur_bitmap = *it; - if (bitmap->HeapBegin() < cur_bitmap->HeapLimit() && - bitmap->HeapLimit() > cur_bitmap->HeapBegin()) { - LOG(FATAL) << "Overlapping space bitmaps added to heap bitmap!"; - } - } - bitmaps_.push_back(bitmap); -} - -void HeapBitmap::SetLargeObjects(SpaceSetMap* large_objects) { - DCHECK(large_objects != NULL); - large_objects_ = large_objects; -} - -HeapBitmap::HeapBitmap(Heap* heap) : heap_(heap), large_objects_(NULL) { - -} - -void HeapBitmap::Walk(SpaceBitmap::Callback* callback, void* arg) { - // TODO: C++0x auto - for (Bitmaps::iterator it = bitmaps_.begin(); it != bitmaps_.end(); ++it) { - (*it)->Walk(callback, arg); - } - - large_objects_->Walk(callback, arg); -} - -} // namespace art |