diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-04-14 19:02:50 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-04-14 19:02:50 +0000 |
commit | d6b9b62748e120f7a02eb315e5cc8179312a5d1a (patch) | |
tree | d318a025cd4ca3a942e708b8717897a76390d960 /runtime/gc/space/image_space.h | |
parent | 107cbcc013df137cdad2a2eb238607b7673c5819 (diff) | |
parent | a8e8f9c0a8e259a807d7b99a148d14104c24209d (diff) | |
download | art-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.zip art-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.tar.gz art-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.tar.bz2 |
Merge "Refactor space bitmap to support different alignments."
Diffstat (limited to 'runtime/gc/space/image_space.h')
-rw-r--r-- | runtime/gc/space/image_space.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/gc/space/image_space.h b/runtime/gc/space/image_space.h index 6b63d10..f6daf89 100644 --- a/runtime/gc/space/image_space.h +++ b/runtime/gc/space/image_space.h @@ -17,6 +17,7 @@ #ifndef ART_RUNTIME_GC_SPACE_IMAGE_SPACE_H_ #define ART_RUNTIME_GC_SPACE_IMAGE_SPACE_H_ +#include "gc/accounting/space_bitmap.h" #include "space.h" namespace art { @@ -59,11 +60,11 @@ class ImageSpace : public MemMapSpace { return GetName(); } - accounting::SpaceBitmap* GetLiveBitmap() const { + accounting::ContinuousSpaceBitmap* GetLiveBitmap() const OVERRIDE { return live_bitmap_.get(); } - accounting::SpaceBitmap* GetMarkBitmap() const { + accounting::ContinuousSpaceBitmap* GetMarkBitmap() const OVERRIDE { // ImageSpaces have the same bitmap for both live and marked. This helps reduce the number of // special cases to test against. return live_bitmap_.get(); @@ -100,9 +101,10 @@ class ImageSpace : public MemMapSpace { static Atomic<uint32_t> bitmap_index_; - UniquePtr<accounting::SpaceBitmap> live_bitmap_; + UniquePtr<accounting::ContinuousSpaceBitmap> live_bitmap_; - ImageSpace(const std::string& name, MemMap* mem_map, accounting::SpaceBitmap* live_bitmap); + ImageSpace(const std::string& name, MemMap* mem_map, + accounting::ContinuousSpaceBitmap* live_bitmap); // The OatFile associated with the image during early startup to // reserve space contiguous to the image. It is later released to |