Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 17 | #ifndef ART_RUNTIME_GC_SPACE_LARGE_OBJECT_SPACE_H_ |
| 18 | #define ART_RUNTIME_GC_SPACE_LARGE_OBJECT_SPACE_H_ |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 19 | |
Mathieu Chartier | bad0267 | 2014-08-25 13:08:22 -0700 | [diff] [blame] | 20 | #include "base/allocator.h" |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 21 | #include "base/safe_map.h" |
| 22 | #include "base/tracking_safe_map.h" |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 23 | #include "dlmalloc_space.h" |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 24 | #include "space.h" |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame] | 25 | |
| 26 | #include <set> |
| 27 | #include <vector> |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 28 | |
| 29 | namespace art { |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 30 | namespace gc { |
| 31 | namespace space { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 32 | |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 33 | class AllocationInfo; |
| 34 | |
Igor Murashkin | aaebaa0 | 2015-01-26 10:55:53 -0800 | [diff] [blame] | 35 | enum class LargeObjectSpaceType { |
| 36 | kDisabled, |
| 37 | kMap, |
| 38 | kFreeList, |
Mathieu Chartier | 2dbe627 | 2014-09-16 10:43:23 -0700 | [diff] [blame] | 39 | }; |
| 40 | |
Ian Rogers | 22a2086 | 2013-03-16 16:34:57 -0700 | [diff] [blame] | 41 | // Abstraction implemented by all large object spaces. |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 42 | class LargeObjectSpace : public DiscontinuousSpace, public AllocSpace { |
| 43 | public: |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 44 | SpaceType GetType() const OVERRIDE { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 45 | return kSpaceTypeLargeObjectSpace; |
| 46 | } |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 47 | void SwapBitmaps(); |
| 48 | void CopyLiveToMarked(); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 49 | virtual void Walk(DlMallocSpace::WalkCallback, void* arg) = 0; |
| 50 | virtual ~LargeObjectSpace() {} |
| 51 | |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 52 | uint64_t GetBytesAllocated() OVERRIDE { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 53 | return num_bytes_allocated_; |
| 54 | } |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 55 | uint64_t GetObjectsAllocated() OVERRIDE { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 56 | return num_objects_allocated_; |
| 57 | } |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 58 | uint64_t GetTotalBytesAllocated() const { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 59 | return total_bytes_allocated_; |
| 60 | } |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 61 | uint64_t GetTotalObjectsAllocated() const { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 62 | return total_objects_allocated_; |
| 63 | } |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 64 | size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE; |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 65 | // LargeObjectSpaces don't have thread local state. |
Hiroshi Yamauchi | 4460a84 | 2015-03-09 11:57:48 -0700 | [diff] [blame] | 66 | size_t RevokeThreadLocalBuffers(art::Thread*) OVERRIDE { |
| 67 | return 0U; |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 68 | } |
Hiroshi Yamauchi | 4460a84 | 2015-03-09 11:57:48 -0700 | [diff] [blame] | 69 | size_t RevokeAllThreadLocalBuffers() OVERRIDE { |
| 70 | return 0U; |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 71 | } |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 72 | bool IsAllocSpace() const OVERRIDE { |
Mathieu Chartier | 590fee9 | 2013-09-13 13:46:47 -0700 | [diff] [blame] | 73 | return true; |
| 74 | } |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 75 | AllocSpace* AsAllocSpace() OVERRIDE { |
Mathieu Chartier | 590fee9 | 2013-09-13 13:46:47 -0700 | [diff] [blame] | 76 | return this; |
| 77 | } |
Mathieu Chartier | 10fb83a | 2014-06-15 15:15:43 -0700 | [diff] [blame] | 78 | collector::ObjectBytePair Sweep(bool swap_bitmaps); |
Mathieu Chartier | 31f4414 | 2014-04-08 14:40:03 -0700 | [diff] [blame] | 79 | virtual bool CanMoveObjects() const OVERRIDE { |
| 80 | return false; |
| 81 | } |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 82 | // Current address at which the space begins, which may vary as the space is filled. |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 83 | uint8_t* Begin() const { |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 84 | return begin_; |
| 85 | } |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 86 | // Current address at which the space ends, which may vary as the space is filled. |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 87 | uint8_t* End() const { |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 88 | return end_; |
| 89 | } |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 90 | // Current size of space |
| 91 | size_t Size() const { |
| 92 | return End() - Begin(); |
| 93 | } |
| 94 | // Return true if we contain the specified address. |
| 95 | bool Contains(const mirror::Object* obj) const { |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 96 | const uint8_t* byte_obj = reinterpret_cast<const uint8_t*>(obj); |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 97 | return Begin() <= byte_obj && byte_obj < End(); |
| 98 | } |
Mathieu Chartier | b363f66 | 2014-07-16 13:28:58 -0700 | [diff] [blame] | 99 | void LogFragmentationAllocFailure(std::ostream& os, size_t failed_alloc_bytes) OVERRIDE |
Andreas Gampe | bdf7f1c | 2016-08-30 16:38:47 -0700 | [diff] [blame] | 100 | REQUIRES_SHARED(Locks::mutator_lock_); |
Mathieu Chartier | b363f66 | 2014-07-16 13:28:58 -0700 | [diff] [blame] | 101 | |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 102 | // Return true if the large object is a zygote large object. Potentially slow. |
| 103 | virtual bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const = 0; |
| 104 | // Called when we create the zygote space, mark all existing large objects as zygote large |
| 105 | // objects. |
| 106 | virtual void SetAllLargeObjectsAsZygoteObjects(Thread* self) = 0; |
| 107 | |
Mathieu Chartier | 208aaf0 | 2016-10-25 10:45:08 -0700 | [diff] [blame] | 108 | // GetRangeAtomic returns Begin() and End() atomically, that is, it never returns Begin() and |
| 109 | // End() from different allocations. |
| 110 | virtual std::pair<uint8_t*, uint8_t*> GetBeginEndAtomic() const = 0; |
| 111 | |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 112 | protected: |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 113 | explicit LargeObjectSpace(const std::string& name, uint8_t* begin, uint8_t* end); |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 114 | static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 115 | |
| 116 | // Approximate number of bytes which have been allocated into the space. |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 117 | uint64_t num_bytes_allocated_; |
| 118 | uint64_t num_objects_allocated_; |
| 119 | uint64_t total_bytes_allocated_; |
| 120 | uint64_t total_objects_allocated_; |
Mathieu Chartier | bbd695c | 2014-04-16 09:48:48 -0700 | [diff] [blame] | 121 | // Begin and end, may change as more large objects are allocated. |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 122 | uint8_t* begin_; |
| 123 | uint8_t* end_; |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 124 | |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 125 | friend class Space; |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 126 | |
| 127 | private: |
| 128 | DISALLOW_COPY_AND_ASSIGN(LargeObjectSpace); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 129 | }; |
| 130 | |
Ian Rogers | 22a2086 | 2013-03-16 16:34:57 -0700 | [diff] [blame] | 131 | // A discontinuous large object space implemented by individual mmap/munmap calls. |
Mathieu Chartier | 0767c9a | 2014-03-26 12:53:19 -0700 | [diff] [blame] | 132 | class LargeObjectMapSpace : public LargeObjectSpace { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 133 | public: |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 134 | // Creates a large object space. Allocations into the large object space use memory maps instead |
| 135 | // of malloc. |
| 136 | static LargeObjectMapSpace* Create(const std::string& name); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 137 | // Return the storage space required by obj. |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 138 | size_t AllocationSize(mirror::Object* obj, size_t* usable_size) REQUIRES(!lock_); |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 139 | mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 140 | size_t* usable_size, size_t* bytes_tl_bulk_allocated) |
| 141 | REQUIRES(!lock_); |
| 142 | size_t Free(Thread* self, mirror::Object* ptr) REQUIRES(!lock_); |
| 143 | void Walk(DlMallocSpace::WalkCallback, void* arg) OVERRIDE REQUIRES(!lock_); |
Ian Rogers | a3dd0b3 | 2013-03-19 19:30:59 -0700 | [diff] [blame] | 144 | // TODO: disabling thread safety analysis as this may be called when we already hold lock_. |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 145 | bool Contains(const mirror::Object* obj) const NO_THREAD_SAFETY_ANALYSIS; |
| 146 | |
Mathieu Chartier | 208aaf0 | 2016-10-25 10:45:08 -0700 | [diff] [blame] | 147 | std::pair<uint8_t*, uint8_t*> GetBeginEndAtomic() const OVERRIDE REQUIRES(!lock_); |
| 148 | |
Mathieu Chartier | 0767c9a | 2014-03-26 12:53:19 -0700 | [diff] [blame] | 149 | protected: |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 150 | struct LargeObject { |
Vladimir Marko | c34bebf | 2018-08-16 16:12:49 +0100 | [diff] [blame^] | 151 | MemMap mem_map; |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 152 | bool is_zygote; |
| 153 | }; |
Brian Carlstrom | 93ba893 | 2013-07-17 21:31:49 -0700 | [diff] [blame] | 154 | explicit LargeObjectMapSpace(const std::string& name); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 155 | virtual ~LargeObjectMapSpace() {} |
| 156 | |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 157 | bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const OVERRIDE REQUIRES(!lock_); |
| 158 | void SetAllLargeObjectsAsZygoteObjects(Thread* self) OVERRIDE REQUIRES(!lock_); |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 159 | |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 160 | // Used to ensure mutual exclusion when the allocation spaces data structures are being modified. |
Ian Rogers | 22a2086 | 2013-03-16 16:34:57 -0700 | [diff] [blame] | 161 | mutable Mutex lock_ DEFAULT_MUTEX_ACQUIRED_AFTER; |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 162 | AllocationTrackingSafeMap<mirror::Object*, LargeObject, kAllocatorTagLOSMaps> large_objects_ |
Mathieu Chartier | bad0267 | 2014-08-25 13:08:22 -0700 | [diff] [blame] | 163 | GUARDED_BY(lock_); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 164 | }; |
| 165 | |
Ian Rogers | 22a2086 | 2013-03-16 16:34:57 -0700 | [diff] [blame] | 166 | // A continuous large object space with a free-list to handle holes. |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 167 | class FreeListSpace FINAL : public LargeObjectSpace { |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 168 | public: |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 169 | static constexpr size_t kAlignment = kPageSize; |
| 170 | |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 171 | virtual ~FreeListSpace(); |
Ian Rogers | 1373595 | 2014-10-08 12:43:28 -0700 | [diff] [blame] | 172 | static FreeListSpace* Create(const std::string& name, uint8_t* requested_begin, size_t capacity); |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 173 | size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 174 | REQUIRES(lock_); |
Ian Rogers | 6fac447 | 2014-02-25 17:01:10 -0800 | [diff] [blame] | 175 | mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 176 | size_t* usable_size, size_t* bytes_tl_bulk_allocated) |
| 177 | OVERRIDE REQUIRES(!lock_); |
| 178 | size_t Free(Thread* self, mirror::Object* obj) OVERRIDE REQUIRES(!lock_); |
| 179 | void Walk(DlMallocSpace::WalkCallback callback, void* arg) OVERRIDE REQUIRES(!lock_); |
| 180 | void Dump(std::ostream& os) const REQUIRES(!lock_); |
Mathieu Chartier | 128c52c | 2012-10-16 14:12:41 -0700 | [diff] [blame] | 181 | |
Mathieu Chartier | 208aaf0 | 2016-10-25 10:45:08 -0700 | [diff] [blame] | 182 | std::pair<uint8_t*, uint8_t*> GetBeginEndAtomic() const OVERRIDE REQUIRES(!lock_); |
| 183 | |
Mathieu Chartier | 0767c9a | 2014-03-26 12:53:19 -0700 | [diff] [blame] | 184 | protected: |
Vladimir Marko | c34bebf | 2018-08-16 16:12:49 +0100 | [diff] [blame^] | 185 | FreeListSpace(const std::string& name, MemMap&& mem_map, uint8_t* begin, uint8_t* end); |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 186 | size_t GetSlotIndexForAddress(uintptr_t address) const { |
| 187 | DCHECK(Contains(reinterpret_cast<mirror::Object*>(address))); |
| 188 | return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; |
| 189 | } |
| 190 | size_t GetSlotIndexForAllocationInfo(const AllocationInfo* info) const; |
| 191 | AllocationInfo* GetAllocationInfoForAddress(uintptr_t address); |
| 192 | const AllocationInfo* GetAllocationInfoForAddress(uintptr_t address) const; |
| 193 | uintptr_t GetAllocationAddressForSlot(size_t slot) const { |
| 194 | return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; |
| 195 | } |
| 196 | uintptr_t GetAddressForAllocationInfo(const AllocationInfo* info) const { |
| 197 | return GetAllocationAddressForSlot(GetSlotIndexForAllocationInfo(info)); |
| 198 | } |
Mathieu Chartier | eb5710e | 2013-07-25 15:19:42 -0700 | [diff] [blame] | 199 | // Removes header from the free blocks set by finding the corresponding iterator and erasing it. |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 200 | void RemoveFreePrev(AllocationInfo* info) REQUIRES(lock_); |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 201 | bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const OVERRIDE; |
Mathieu Chartier | 9044347 | 2015-07-16 20:32:27 -0700 | [diff] [blame] | 202 | void SetAllLargeObjectsAsZygoteObjects(Thread* self) OVERRIDE REQUIRES(!lock_); |
Mathieu Chartier | eb5710e | 2013-07-25 15:19:42 -0700 | [diff] [blame] | 203 | |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 204 | class SortByPrevFree { |
| 205 | public: |
| 206 | bool operator()(const AllocationInfo* a, const AllocationInfo* b) const; |
| 207 | }; |
| 208 | typedef std::set<AllocationInfo*, SortByPrevFree, |
| 209 | TrackingAllocator<AllocationInfo*, kAllocatorTagLOSFreeList>> FreeBlocks; |
Mathieu Chartier | eb5710e | 2013-07-25 15:19:42 -0700 | [diff] [blame] | 210 | |
Mathieu Chartier | eb5710e | 2013-07-25 15:19:42 -0700 | [diff] [blame] | 211 | // There is not footer for any allocations at the end of the space, so we keep track of how much |
| 212 | // free space there is at the end manually. |
Vladimir Marko | c34bebf | 2018-08-16 16:12:49 +0100 | [diff] [blame^] | 213 | MemMap mem_map_; |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 214 | // Side table for allocation info, one per page. |
Vladimir Marko | c34bebf | 2018-08-16 16:12:49 +0100 | [diff] [blame^] | 215 | MemMap allocation_info_map_; |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 216 | AllocationInfo* allocation_info_; |
| 217 | |
Mathieu Chartier | e715811 | 2015-06-03 13:32:15 -0700 | [diff] [blame] | 218 | mutable Mutex lock_ DEFAULT_MUTEX_ACQUIRED_AFTER; |
Mathieu Chartier | af4edbd | 2014-09-08 17:42:48 -0700 | [diff] [blame] | 219 | // Free bytes at the end of the space. |
Mathieu Chartier | eb5710e | 2013-07-25 15:19:42 -0700 | [diff] [blame] | 220 | size_t free_end_ GUARDED_BY(lock_); |
| 221 | FreeBlocks free_blocks_ GUARDED_BY(lock_); |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 222 | }; |
| 223 | |
Ian Rogers | 1d54e73 | 2013-05-02 21:10:01 -0700 | [diff] [blame] | 224 | } // namespace space |
| 225 | } // namespace gc |
| 226 | } // namespace art |
Mathieu Chartier | 1c23e1e | 2012-10-12 14:14:11 -0700 | [diff] [blame] | 227 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 228 | #endif // ART_RUNTIME_GC_SPACE_LARGE_OBJECT_SPACE_H_ |