summaryrefslogtreecommitdiffstats
path: root/runtime/gc/space/space.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/space/space.h')
-rw-r--r--runtime/gc/space/space.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/gc/space/space.h b/runtime/gc/space/space.h
index 37d7c80..c9022f1 100644
--- a/runtime/gc/space/space.h
+++ b/runtime/gc/space/space.h
@@ -160,6 +160,9 @@ class Space {
}
virtual ContinuousMemMapAllocSpace* AsContinuousMemMapAllocSpace();
+ // Returns true if objects in the space are movable.
+ virtual bool CanMoveObjects() const = 0;
+
virtual ~Space() {}
protected:
@@ -396,12 +399,9 @@ class ContinuousMemMapAllocSpace : public MemMapSpace, public AllocSpace {
// Swap the live and mark bitmaps of this space. This is used by the GC for concurrent sweeping.
void SwapBitmaps();
- // Free all memory associated with this space.
+ // Reset the space back to an empty space and release memory.
virtual void Clear() = 0;
- // Reset the space back to an empty space.
- virtual void Reset() = 0;
-
accounting::SpaceBitmap* GetLiveBitmap() const {
return live_bitmap_.get();
}