diff options
Diffstat (limited to 'runtime/gc/space/rosalloc_space.h')
| -rw-r--r-- | runtime/gc/space/rosalloc_space.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/runtime/gc/space/rosalloc_space.h b/runtime/gc/space/rosalloc_space.h index 5b7616c425..b0c07fa105 100644 --- a/runtime/gc/space/rosalloc_space.h +++ b/runtime/gc/space/rosalloc_space.h @@ -83,12 +83,6 @@ class RosAllocSpace : public MallocSpace { uint64_t GetBytesAllocated(); uint64_t GetObjectsAllocated(); - uint64_t GetTotalBytesAllocated() { - return GetBytesAllocated() + total_bytes_freed_atomic_; - } - uint64_t GetTotalObjectsAllocated() { - return GetObjectsAllocated() + total_objects_freed_atomic_; - } void RevokeThreadLocalBuffers(Thread* thread); void RevokeAllThreadLocalBuffers(); @@ -112,7 +106,6 @@ class RosAllocSpace : public MallocSpace { byte* begin, byte* end, byte* limit, size_t growth_limit); private: - size_t InternalAllocationSize(const mirror::Object* obj); mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated); void* CreateAllocator(void* base, size_t morecore_start, size_t initial_size, bool low_memory_mode) { @@ -125,10 +118,6 @@ class RosAllocSpace : public MallocSpace { void* arg) LOCKS_EXCLUDED(Locks::runtime_shutdown_lock_, Locks::thread_list_lock_); - // Approximate number of bytes and objects which have been deallocated in the space. - AtomicInteger total_bytes_freed_atomic_; - AtomicInteger total_objects_freed_atomic_; - // Underlying rosalloc. art::gc::allocator::RosAlloc* const rosalloc_; |