blob: 374fa84a6b99151359110a21f6d030532de20946 [file] [log] [blame]
Elliott Hughes9d5ccec2011-09-19 13:19:50 -07001/*
2 * Copyright (C) 2008 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 */
Carl Shapiro1fb86202011-06-27 17:43:13 -070016
17#ifndef ART_SRC_HEAP_H_
18#define ART_SRC_HEAP_H_
19
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080020#include <string>
Carl Shapiro58551df2011-07-24 03:09:51 -070021#include <vector>
22
Ian Rogers5d76c432011-10-31 21:42:49 -070023#include "card_table.h"
Brian Carlstrom578bbdc2011-07-21 14:07:47 -070024#include "globals.h"
Ian Rogers30fab402012-01-23 15:43:46 -080025#include "gtest/gtest.h"
Elliott Hughes5e71b522011-10-20 13:12:32 -070026#include "heap_bitmap.h"
Brian Carlstromcd74c4b2012-01-23 13:21:00 -080027#include "mutex.h"
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070028#include "offsets.h"
Carl Shapiro1fb86202011-06-27 17:43:13 -070029
Elliott Hughes3e465b12011-09-02 18:26:12 -070030#define VERIFY_OBJECT_ENABLED 0
31
Carl Shapiro1fb86202011-06-27 17:43:13 -070032namespace art {
33
Ian Rogers30fab402012-01-23 15:43:46 -080034class AllocSpace;
Brian Carlstroma40f9bc2011-07-26 21:26:07 -070035class Class;
Brian Carlstromfddf6f62012-03-15 16:56:45 -070036class ImageSpace;
Brian Carlstroma40f9bc2011-07-26 21:26:07 -070037class Object;
Carl Shapiro69759ea2011-07-21 18:13:35 -070038class Space;
Ian Rogers5d4bdc22011-11-02 22:15:43 -070039class Thread;
Carl Shapiro69759ea2011-07-21 18:13:35 -070040class HeapBitmap;
Ian Rogers30fab402012-01-23 15:43:46 -080041class SpaceTest;
Carl Shapiro69759ea2011-07-21 18:13:35 -070042
Carl Shapiro1fb86202011-06-27 17:43:13 -070043class Heap {
44 public:
Ian Rogers30fab402012-01-23 15:43:46 -080045 static const size_t kInitialSize = 2 * MB;
Carl Shapiro69759ea2011-07-21 18:13:35 -070046
Ian Rogers30fab402012-01-23 15:43:46 -080047 static const size_t kMaximumSize = 32 * MB;
Carl Shapiro69759ea2011-07-21 18:13:35 -070048
Elliott Hughes410c0c82011-09-01 17:58:25 -070049 typedef void (RootVisitor)(const Object* root, void* arg);
Elliott Hughesc33a32b2011-10-11 18:18:07 -070050 typedef bool (IsMarkedTester)(const Object* object, void* arg);
Brian Carlstrom7e93b502011-08-04 14:16:22 -070051
Brian Carlstrom58ae9412011-10-04 00:56:06 -070052 // Create a heap with the requested sizes. The possible empty
53 // image_file_names names specify Spaces to load based on
54 // ImageWriter output.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080055 explicit Heap(size_t starting_size, size_t growth_limit, size_t capacity,
56 const std::string& image_file_name);
Carl Shapiro61e019d2011-07-14 16:53:09 -070057
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080058 ~Heap();
Brian Carlstroma7f4f482011-07-17 17:01:34 -070059
Brian Carlstroma40f9bc2011-07-26 21:26:07 -070060 // Allocates and initializes storage for an object instance.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080061 Object* AllocObject(Class* klass, size_t num_bytes);
Brian Carlstroma7f4f482011-07-17 17:01:34 -070062
Elliott Hughesa2501992011-08-26 19:39:54 -070063 // Check sanity of given reference. Requires the heap lock.
Elliott Hughes3e465b12011-09-02 18:26:12 -070064#if VERIFY_OBJECT_ENABLED
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080065 void VerifyObject(const Object *obj);
Elliott Hughes3e465b12011-09-02 18:26:12 -070066#else
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080067 void VerifyObject(const Object *obj) {}
Elliott Hughes3e465b12011-09-02 18:26:12 -070068#endif
Ian Rogers408f79a2011-08-23 18:22:33 -070069
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070070 // Check sanity of all live references. Requires the heap lock.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080071 void VerifyHeap();
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070072
Elliott Hughes6a5bd492011-10-28 14:33:57 -070073 // A weaker test than IsLiveObject or VerifyObject that doesn't require the heap lock,
Elliott Hughesa2501992011-08-26 19:39:54 -070074 // and doesn't abort on error, allowing the caller to report more
75 // meaningful diagnostics.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080076 bool IsHeapAddress(const Object* obj);
77
Elliott Hughes6a5bd492011-10-28 14:33:57 -070078 // Returns true if 'obj' is a live heap object, false otherwise (including for invalid addresses).
79 // Requires the heap lock to be held.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080080 bool IsLiveObjectLocked(const Object* obj);
Elliott Hughesa2501992011-08-26 19:39:54 -070081
Carl Shapiro69759ea2011-07-21 18:13:35 -070082 // Initiates an explicit garbage collection.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080083 void CollectGarbage(bool clear_soft_references);
Carl Shapiro69759ea2011-07-21 18:13:35 -070084
Elliott Hughesbf86d042011-08-31 17:53:14 -070085 // Implements java.lang.Runtime.maxMemory.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080086 int64_t GetMaxMemory();
Elliott Hughesbf86d042011-08-31 17:53:14 -070087 // Implements java.lang.Runtime.totalMemory.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080088 int64_t GetTotalMemory();
Elliott Hughesbf86d042011-08-31 17:53:14 -070089 // Implements java.lang.Runtime.freeMemory.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080090 int64_t GetFreeMemory();
Elliott Hughesbf86d042011-08-31 17:53:14 -070091
Elliott Hughes9d5ccec2011-09-19 13:19:50 -070092 // Implements VMDebug.countInstancesOfClass.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080093 int64_t CountInstances(Class* c, bool count_assignable);
Elliott Hughes9d5ccec2011-09-19 13:19:50 -070094
Ian Rogers3bb17a62012-01-27 23:56:44 -080095 // Removes the growth limit on the alloc space so it may grow to its maximum capacity. Used to
96 // implement dalvik.system.VMRuntime.clearGrowthLimit.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -080097 void ClearGrowthLimit();
jeffhaoc1160702011-10-27 15:48:45 -070098
Ian Rogers30fab402012-01-23 15:43:46 -080099 // Target ideal heap utilization ratio, implements
100 // dalvik.system.VMRuntime.getTargetHeapUtilization.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800101 float GetTargetHeapUtilization() {
Brian Carlstrom395520e2011-09-25 19:35:00 -0700102 return target_utilization_;
Elliott Hughes7ede61e2011-09-14 18:18:06 -0700103 }
Ian Rogers30fab402012-01-23 15:43:46 -0800104 // Set target ideal heap utilization ratio, implements
105 // dalvik.system.VMRuntime.setTargetHeapUtilization.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800106 void SetTargetHeapUtilization(float target) {
Ian Rogers30fab402012-01-23 15:43:46 -0800107 DCHECK_GT(target, 0.0f); // asserted in Java code
108 DCHECK_LT(target, 1.0f);
Brian Carlstrom395520e2011-09-25 19:35:00 -0700109 target_utilization_ = target;
Elliott Hughes7ede61e2011-09-14 18:18:06 -0700110 }
Ian Rogers3bb17a62012-01-27 23:56:44 -0800111
112 // For the alloc space, sets the maximum number of bytes that the heap is allowed to allocate
113 // from the system. Doesn't allow the space to exceed its growth limit.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800114 void SetIdealFootprint(size_t max_allowed_footprint);
Elliott Hughes7ede61e2011-09-14 18:18:06 -0700115
Carl Shapiro69759ea2011-07-21 18:13:35 -0700116 // Blocks the caller until the garbage collector becomes idle.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800117 void WaitForConcurrentGcToComplete();
Carl Shapiro69759ea2011-07-21 18:13:35 -0700118
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800119 pid_t GetLockOwner(); // For SignalCatcher.
120 void Lock();
121 void Unlock();
122 void AssertLockHeld() {
Brian Carlstromcd74c4b2012-01-23 13:21:00 -0800123 lock_->AssertHeld();
124 }
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800125 void AssertLockNotHeld() {
Brian Carlstromcd74c4b2012-01-23 13:21:00 -0800126 lock_->AssertNotHeld();
127 }
Carl Shapiro61e019d2011-07-14 16:53:09 -0700128
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800129 const std::vector<Space*>& GetSpaces() {
Carl Shapiro58551df2011-07-24 03:09:51 -0700130 return spaces_;
131 }
Carl Shapiro61e019d2011-07-14 16:53:09 -0700132
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800133 HeapBitmap* GetLiveBits() {
Carl Shapiro58551df2011-07-24 03:09:51 -0700134 return live_bitmap_;
Carl Shapiro744ad052011-08-06 15:53:36 -0700135 }
Carl Shapiro58551df2011-07-24 03:09:51 -0700136
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800137 HeapBitmap* GetMarkBits() {
Carl Shapiro58551df2011-07-24 03:09:51 -0700138 return mark_bitmap_;
Carl Shapiro744ad052011-08-06 15:53:36 -0700139 }
Carl Shapiro58551df2011-07-24 03:09:51 -0700140
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800141 void SetWellKnownClasses(Class* java_lang_ref_FinalizerReference,
Elliott Hughesadb460d2011-10-05 17:02:34 -0700142 Class* java_lang_ref_ReferenceQueue);
143
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800144 void SetReferenceOffsets(MemberOffset reference_referent_offset,
145 MemberOffset reference_queue_offset,
146 MemberOffset reference_queueNext_offset,
147 MemberOffset reference_pendingNext_offset,
148 MemberOffset finalizer_reference_zombie_offset);
Brian Carlstrom1f870082011-08-23 16:02:11 -0700149
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800150 Object* GetReferenceReferent(Object* reference);
151 void ClearReferenceReferent(Object* reference);
Brian Carlstrom1f870082011-08-23 16:02:11 -0700152
Elliott Hughesadb460d2011-10-05 17:02:34 -0700153 // Returns true if the reference object has not yet been enqueued.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800154 bool IsEnqueuable(const Object* ref);
155 void EnqueueReference(Object* ref, Object** list);
156 void EnqueuePendingReference(Object* ref, Object** list);
157 Object* DequeuePendingReference(Object** list);
Brian Carlstrom1f870082011-08-23 16:02:11 -0700158
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800159 MemberOffset GetReferencePendingNextOffset() {
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700160 DCHECK_NE(reference_pendingNext_offset_.Uint32Value(), 0U);
Brian Carlstrom1f870082011-08-23 16:02:11 -0700161 return reference_pendingNext_offset_;
162 }
163
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800164 MemberOffset GetFinalizerReferenceZombieOffset() {
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700165 DCHECK_NE(finalizer_reference_zombie_offset_.Uint32Value(), 0U);
Brian Carlstrom1f870082011-08-23 16:02:11 -0700166 return finalizer_reference_zombie_offset_;
167 }
168
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800169 void EnableObjectValidation() {
Ian Rogers30fab402012-01-23 15:43:46 -0800170#if VERIFY_OBJECT_ENABLED
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800171 VerifyHeap();
Ian Rogers30fab402012-01-23 15:43:46 -0800172#endif
Elliott Hughes85d15452011-09-16 17:33:01 -0700173 verify_objects_ = true;
174 }
175
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800176 void DisableObjectValidation() {
Elliott Hughes85d15452011-09-16 17:33:01 -0700177 verify_objects_ = false;
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700178 }
179
Elliott Hughes92b3b562011-09-08 16:32:26 -0700180 // Callers must hold the heap lock.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800181 void RecordFreeLocked(size_t freed_objects, size_t freed_bytes);
Brian Carlstrom693267a2011-09-06 09:25:34 -0700182
Elliott Hughes5ea047b2011-09-13 14:38:18 -0700183 // Must be called if a field of an Object in the heap changes, and before any GC safe-point.
184 // The call is not needed if NULL is stored in the field.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800185 void WriteBarrierField(const Object* dest, MemberOffset offset, const Object* new_val) {
Ian Rogers5d76c432011-10-31 21:42:49 -0700186 if (!card_marking_disabled_) {
187 card_table_->MarkCard(dest);
188 }
189 }
190
191 // Write barrier for array operations that update many field positions
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800192 void WriteBarrierArray(const Object* dest, int pos, size_t len) {
Ian Rogers5d76c432011-10-31 21:42:49 -0700193 if (UNLIKELY(!card_marking_disabled_)) {
194 card_table_->MarkCard(dest);
195 }
196 }
197
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800198 CardTable* GetCardTable() {
Ian Rogers5d76c432011-10-31 21:42:49 -0700199 return card_table_;
200 }
201
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800202 void DisableCardMarking() {
Ian Rogers5d76c432011-10-31 21:42:49 -0700203 // TODO: we shouldn't need to disable card marking, this is here to help the image_writer
204 card_marking_disabled_ = true;
Elliott Hughes3a4f8df2011-09-13 15:22:36 -0700205 }
Elliott Hughes5ea047b2011-09-13 14:38:18 -0700206
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800207 void AddFinalizerReference(Thread* self, Object* object);
Elliott Hughesadb460d2011-10-05 17:02:34 -0700208
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800209 size_t GetBytesAllocated() { return num_bytes_allocated_; }
210 size_t GetObjectsAllocated() { return num_objects_allocated_; }
Elliott Hughes7162ad92011-10-27 14:08:42 -0700211
Brian Carlstromfddf6f62012-03-15 16:56:45 -0700212 ImageSpace* GetImageSpace() {
213 CHECK(image_space_ != NULL);
214 return image_space_;
215 }
216
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800217 AllocSpace* GetAllocSpace() {
Brian Carlstromfddf6f62012-03-15 16:56:45 -0700218 CHECK(alloc_space_ != NULL);
Ian Rogers5d76c432011-10-31 21:42:49 -0700219 return alloc_space_;
220 }
221
Carl Shapiro58551df2011-07-24 03:09:51 -0700222 private:
223 // Allocates uninitialized storage.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800224 Object* AllocateLocked(size_t num_bytes);
225 Object* AllocateLocked(AllocSpace* space, size_t num_bytes);
Carl Shapiro58551df2011-07-24 03:09:51 -0700226
Elliott Hughesadb460d2011-10-05 17:02:34 -0700227 // Pushes a list of cleared references out to the managed heap.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800228 void EnqueueClearedReferences(Object** cleared_references);
Elliott Hughesadb460d2011-10-05 17:02:34 -0700229
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800230 void RequestHeapTrim();
Elliott Hughes8cf5bc02012-02-02 16:32:16 -0800231
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800232 void RecordAllocationLocked(AllocSpace* space, const Object* object);
233 void RecordImageAllocations(Space* space);
Carl Shapiro69759ea2011-07-21 18:13:35 -0700234
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800235 void CollectGarbageInternal(bool clear_soft_references);
Carl Shapiro69759ea2011-07-21 18:13:35 -0700236
Ian Rogers3bb17a62012-01-27 23:56:44 -0800237 // Given the current contents of the alloc space, increase the allowed heap footprint to match
238 // the target utilization ratio. This should only be called immediately after a full garbage
239 // collection.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800240 void GrowForUtilization();
Carl Shapiro69759ea2011-07-21 18:13:35 -0700241
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800242 void AddSpace(Space* space);
Ian Rogers30fab402012-01-23 15:43:46 -0800243
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800244 void VerifyObjectLocked(const Object *obj);
Elliott Hughes92b3b562011-09-08 16:32:26 -0700245
Brian Carlstrom78128a62011-09-15 17:21:19 -0700246 static void VerificationCallback(Object* obj, void* arg);
Elliott Hughes92b3b562011-09-08 16:32:26 -0700247
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800248 Mutex* lock_;
Carl Shapiro69759ea2011-07-21 18:13:35 -0700249
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800250 std::vector<Space*> spaces_;
Carl Shapiro69759ea2011-07-21 18:13:35 -0700251
Brian Carlstromfddf6f62012-03-15 16:56:45 -0700252 ImageSpace* image_space_;
253
Brian Carlstrom4a289ed2011-08-16 17:17:49 -0700254 // default Space for allocations
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800255 AllocSpace* alloc_space_;
Brian Carlstrom4a289ed2011-08-16 17:17:49 -0700256
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800257 HeapBitmap* mark_bitmap_;
Carl Shapiro69759ea2011-07-21 18:13:35 -0700258
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800259 HeapBitmap* live_bitmap_;
Carl Shapiro69759ea2011-07-21 18:13:35 -0700260
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800261 CardTable* card_table_;
Ian Rogers5d76c432011-10-31 21:42:49 -0700262
263 // Used by the image writer to disable card marking on copied objects
264 // TODO: remove
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800265 bool card_marking_disabled_;
Ian Rogers5d76c432011-10-31 21:42:49 -0700266
Carl Shapiro58551df2011-07-24 03:09:51 -0700267 // True while the garbage collector is running.
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800268 bool is_gc_running_;
Carl Shapiro69759ea2011-07-21 18:13:35 -0700269
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800270 // Number of bytes allocated. Adjusted after each allocation and free.
271 size_t num_bytes_allocated_;
Carl Shapiro58551df2011-07-24 03:09:51 -0700272
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800273 // Number of objects allocated. Adjusted after each allocation and free.
274 size_t num_objects_allocated_;
Carl Shapiro58551df2011-07-24 03:09:51 -0700275
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800276 Class* java_lang_ref_FinalizerReference_;
277 Class* java_lang_ref_ReferenceQueue_;
Elliott Hughesadb460d2011-10-05 17:02:34 -0700278
Brian Carlstrom1f870082011-08-23 16:02:11 -0700279 // offset of java.lang.ref.Reference.referent
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800280 MemberOffset reference_referent_offset_;
Brian Carlstrom1f870082011-08-23 16:02:11 -0700281
282 // offset of java.lang.ref.Reference.queue
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800283 MemberOffset reference_queue_offset_;
Brian Carlstrom1f870082011-08-23 16:02:11 -0700284
285 // offset of java.lang.ref.Reference.queueNext
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800286 MemberOffset reference_queueNext_offset_;
Brian Carlstrom1f870082011-08-23 16:02:11 -0700287
288 // offset of java.lang.ref.Reference.pendingNext
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800289 MemberOffset reference_pendingNext_offset_;
Brian Carlstrom1f870082011-08-23 16:02:11 -0700290
291 // offset of java.lang.ref.FinalizerReference.zombie
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800292 MemberOffset finalizer_reference_zombie_offset_;
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700293
Brian Carlstrom395520e2011-09-25 19:35:00 -0700294 // Target ideal heap utilization ratio
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800295 float target_utilization_;
Brian Carlstrom395520e2011-09-25 19:35:00 -0700296
Elliott Hughesb3bd5f02012-03-08 21:05:27 -0800297 bool verify_objects_;
Brian Carlstrom1f870082011-08-23 16:02:11 -0700298
Ian Rogers30fab402012-01-23 15:43:46 -0800299 FRIEND_TEST(SpaceTest, AllocAndFree);
Ian Rogers3bb17a62012-01-27 23:56:44 -0800300 FRIEND_TEST(SpaceTest, AllocAndFreeList);
301 friend class SpaceTest;
Ian Rogers30fab402012-01-23 15:43:46 -0800302
Carl Shapiro69759ea2011-07-21 18:13:35 -0700303 DISALLOW_IMPLICIT_CONSTRUCTORS(Heap);
304};
305
Carl Shapiro1fb86202011-06-27 17:43:13 -0700306} // namespace art
307
308#endif // ART_SRC_HEAP_H_