summaryrefslogtreecommitdiffstats
path: root/runtime/gc/space/large_object_space.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/space/large_object_space.h')
-rw-r--r--runtime/gc/space/large_object_space.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/gc/space/large_object_space.h b/runtime/gc/space/large_object_space.h
index ef889d42c2..07fb288576 100644
--- a/runtime/gc/space/large_object_space.h
+++ b/runtime/gc/space/large_object_space.h
@@ -59,6 +59,14 @@ class LargeObjectSpace : public DiscontinuousSpace, public AllocSpace {
size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs);
+ virtual bool IsAllocSpace() const {
+ return true;
+ }
+
+ virtual AllocSpace* AsAllocSpace() {
+ return this;
+ }
+
protected:
explicit LargeObjectSpace(const std::string& name);