Searched defs:heap (Results 26 - 50 of 58) sorted by relevance

123

/art/runtime/mirror/
H A Dobject_array-inl.h26 #include "gc/heap.h"
257 gc::Heap* heap = Runtime::Current()->GetHeap(); local
258 gc::AllocatorType allocator_type = heap->IsMovableObject(this) ? heap->GetCurrentAllocator() :
259 heap->GetCurrentNonMovingAllocator();
H A Dstring-inl.h23 #include "gc/heap-inl.h"
184 gc::Heap* heap = Runtime::Current()->GetHeap(); local
186 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, string_class, alloc_size,
H A Darray-inl.h27 #include "gc/heap-inl.h"
172 gc::Heap* heap = Runtime::Current()->GetHeap(); local
177 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size,
184 heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, array_class, size,
H A Dclass.cc1001 gc::Heap* heap = Runtime::Current()->GetHeap(); local
1006 heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) :
1007 heap->AllocNonMovableObject<true>(self, java_lang_Class_.Read(), new_length, visitor);
H A Dclass-inl.h31 #include "gc/heap-inl.h"
703 gc::Heap* heap = Runtime::Current()->GetHeap(); local
709 heap->AllocObjectWithAllocator<kIsInstrumented, false>(self, this, this->object_size_,
712 heap->AddFinalizerReference(self, &obj);
/art/tools/ahat/src/
H A DAhatSnapshot.java19 import com.android.tools.perflib.heap.ClassObj;
20 import com.android.tools.perflib.heap.Heap;
21 import com.android.tools.perflib.heap.Instance;
22 import com.android.tools.perflib.heap.RootObj;
23 import com.android.tools.perflib.heap.RootType;
24 import com.android.tools.perflib.heap.Snapshot;
25 import com.android.tools.perflib.heap.StackFrame;
26 import com.android.tools.perflib.heap.StackTrace;
87 for (Heap heap : mHeaps) {
89 for (Instance inst : Iterables.concat(heap
154 getHeapIndex(Heap heap) argument
220 getHeapSize(Heap heap) argument
[all...]
/art/compiler/
H A Dimage_test.cc348 gc::Heap* heap = Runtime::Current()->GetHeap(); local
349 ASSERT_TRUE(heap->HaveContinuousSpaces());
350 gc::space::ContinuousSpace* space = heap->GetNonMovingSpace();
395 gc::Heap* heap = Runtime::Current()->GetHeap(); local
396 ASSERT_TRUE(heap->HasBootImageSpace());
397 ASSERT_TRUE(heap->GetNonMovingSpace()->IsMallocSpace());
400 ASSERT_EQ(heap->GetBootImageSpaces().size(), image_file_sizes.size());
406 gc::space::ImageSpace* image_space = heap->GetBootImageSpaces()[i];
H A Dimage_writer.cc42 #include "gc/heap.h"
80 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
82 DCHECK(heap->GetBootImageSpaces().empty());
85 for (gc::space::ImageSpace* boot_image_space : heap->GetBootImageSpaces()) {
97 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
99 DCHECK(heap->GetBootImageSpaces().empty());
102 for (gc::space::ImageSpace* boot_image_space : heap->GetBootImageSpaces()) {
124 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
133 heap->CollectGarbage(false); // Remove garbage.
185 // TODO: heap validatio
926 gc::Heap* heap = Runtime::Current()->GetHeap(); local
1393 gc::Heap* const heap = runtime->GetHeap(); member in class:art::gc
1643 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
1837 gc::Heap* heap = Runtime::Current()->GetHeap(); local
[all...]
/art/runtime/base/
H A Dlogging.h45 bool heap; member in struct:art::LogVerbosity
/art/runtime/entrypoints/
H A Dentrypoint_utils-inl.h206 gc::Heap* heap = Runtime::Current()->GetHeap(); local
210 return klass->Alloc</*kInstrumented*/true, false>(self, heap->GetCurrentAllocator());
280 gc::Heap* heap = Runtime::Current()->GetHeap(); local
286 heap->GetCurrentAllocator());
/art/runtime/gc/accounting/
H A Dmod_union_table.cc25 #include "gc/heap.h"
271 Heap* heap = mod_union_table_->GetHeap(); local
272 space::ContinuousSpace* from_space = heap->FindContinuousSpaceFromObject(obj, false);
273 space::ContinuousSpace* to_space = heap->FindContinuousSpaceFromObject(ref, false);
281 heap->DumpSpaces(LOG(INFO));
430 if (VLOG_IS_ON(heap)) {
436 Heap* heap,
438 : ModUnionTable(name, heap, space) {
435 ModUnionTableCardCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument
/art/runtime/gc/collector/
H A Dmark_compact.cc25 #include "gc/heap.h"
53 MarkCompact::MarkCompact(Heap* heap, const std::string& name_prefix) argument
54 : GarbageCollector(heap, name_prefix + (name_prefix.empty() ? "" : " ") + "mark compact"),
111 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap.
545 // marked, put it on the appropriate list in the heap for later processing.
H A Dsemi_space.cc33 #include "gc/heap.h"
90 SemiSpace::SemiSpace(Heap* heap, bool generational, const std::string& name_prefix) argument
91 : GarbageCollector(heap,
158 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap.
179 // Store the stack traces into the runtime fault string in case we Get a heap corruption
197 // collection, collect the whole heap.
201 VLOG(heap) << "Whole heap collection";
204 VLOG(heap) << "Bump pointer space only collection";
211 // If generational, clear soft references if a whole heap collectio
[all...]
H A Dconcurrent_copying.cc42 ConcurrentCopying::ConcurrentCopying(Heap* heap, const std::string& name_prefix) argument
43 : GarbageCollector(heap,
60 cc_heap_bitmap_.reset(new accounting::HeapBitmap(heap));
68 heap_mark_bitmap_ = heap->GetMarkBitmap();
2108 // We don't really need to lock the heap bitmap lock as we use CAS to mark in bitmaps.
H A Dmark_sweep.cc36 #include "gc/heap.h"
92 MarkSweep::MarkSweep(Heap* heap, bool is_concurrent, const std::string& name_prefix) argument
93 : GarbageCollector(heap,
133 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap.
592 auto* heap = Runtime::Current()->GetHeap(); local
593 if (heap->GetLiveBitmap()->GetContinuousSpaceBitmap(root) == nullptr) {
594 space::LargeObjectSpace* large_object_space = heap->GetLargeObjectsSpace();
842 VLOG(heap) << "Parallel scanning cards " << reinterpret_cast<void*>(begin_) << " - "
889 // Calculate how many bytes of heap we will scan,
1026 // This function does not handle heap en
[all...]
/art/runtime/gc/space/
H A Ddlmalloc_space.cc22 #include "gc/heap.h"
81 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
105 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
116 // morecore_start. Don't use an internal dlmalloc lock (as we already hold heap lock). When
120 // Do not allow morecore requests to succeed beyond the initial size of the heap
171 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this;
208 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this;
253 VLOG(heap) << "DlMallocSpace::SetFootprintLimit " << PrettySize(new_size);
254 // Compare against the actual footprint, rather than the Size(), because the heap may not have
324 Heap* heap local
[all...]
H A Drosalloc_space.cc23 #include "gc/heap.h"
98 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
124 if (VLOG_IS_ON(heap) || VLOG_IS_ON(startup)) {
194 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this;
228 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this;
245 VLOG(heap) << "RosAllocSpace::Trim() ";
278 VLOG(heap) << "RosAllocSpace::SetFootprintLimit " << PrettySize(new_size);
279 // Compare against the actual footprint, rather than the Size(), because the heap may not have
383 Heap* heap = Runtime::Current()->GetHeap(); local
384 art::gc::space::RosAllocSpace* rosalloc_space = heap
[all...]
H A Dlarge_object_space.cc146 auto* heap = Runtime::Current()->GetHeap(); local
147 auto* live_bitmap = heap->GetLiveBitmap();
H A Dimage_space.cc665 // Return the relocated address of a heap object.
765 // Space is not yet added to the heap, don't do a read barrier.
966 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc::space::gc
967 heap->GetBootImagesSize(&boot_image_begin, &boot_image_end, &boot_oat_begin, &boot_oat_end);
1013 // True if we need to fixup any heap pointers, otherwise only code pointers.
/art/runtime/native/
H A Ddalvik_system_VMDebug.cc50 "hprof-heap-dump",
51 "hprof-heap-dump-streaming",
260 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
268 heap->CountInstances(classes, countAssignable, &count);
275 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
287 heap->CountInstances(classes, countAssignable, &counts[0]);
299 // We export the VM internal per-heap-space size/alloc/free metrics
300 // for the zygote space, alloc space (application heap), and the large
316 gc::Heap* heap = Runtime::Current()->GetHeap(); local
319 for (gc::space::ContinuousSpace* space : heap
375 gc::Heap* heap = Runtime::Current()->GetHeap(); local
434 gc::Heap* heap = Runtime::Current()->GetHeap(); local
[all...]
/art/runtime/
H A Doat_file_manager.cc206 /*out*/std::priority_queue<DexFileAndClassPair>* heap,
214 heap->emplace(dex_file.get(), /*current_class_index*/0U, already_loaded);
221 /*inout*/std::priority_queue<DexFileAndClassPair>* heap) {
224 heap->push(std::move(*original));
425 // The collision check works by maintaining a heap with one class from each dex file, sorted by the
426 // class descriptor. Then a dex-file/class pair is continually removed from the heap and compared
665 // Successfully added image space to heap, release the map so that it does not get
204 AddDexFilesFromOat(const OatFile* oat_file, bool already_loaded, std::priority_queue<DexFileAndClassPair>* heap, std::vector<std::unique_ptr<const DexFile>>* opened_dex_files) argument
220 AddNext( DexFileAndClassPair* original, std::priority_queue<DexFileAndClassPair>* heap) argument
H A Dthread_list.cc91 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::gc
92 heap->DisableGCForShutdown();
94 heap->WaitForGcToComplete(gc::kGcCauseBackground, Thread::Current());
/art/imgdiag/
H A Dimgdiag.cc33 #include "gc/heap.h"
1021 gc::Heap* heap = runtime->GetHeap(); local
1022 std::vector<gc::space::ImageSpace*> image_spaces = heap->GetBootImageSpaces();
/art/runtime/gc/
H A Dheap.h149 // How often we allow heap trimming to happen (nanoseconds).
154 // Create a heap with the requested sizes. The possible empty
233 // Visit all of the live objects in the heap.
259 // The given reference is believed to be to an object in the Java heap, check the soundness of it.
272 // A weaker test than IsLiveObject or VerifyObject that doesn't require the heap lock,
282 // Returns true if 'obj' is a live heap object, false otherwise (including for invalid addresses).
283 // Requires the heap lock to be held.
344 // Target ideal heap utilization ratio, implements
354 // Set the heap's private space pointers to be the same as the space based on it's type. Public
365 // Set target ideal heap utilizatio
1197 ScopedDisableRosAllocVerification(Heap* heap) argument
[all...]
/art/runtime/hprof/
H A Dhprof.cc21 * heap, and some analysis tools require that the class and string data
52 #include "gc/heap.h"
423 LOG(INFO) << "hprof: heap dump \"" << filename_ << "\" starting...";
461 LOG(INFO) << "hprof: heap dump completed (" << PrettySize(RoundUp(overall_size, KB))
490 // Reset current heap and object count.
505 // Walk the roots and the heap.
574 // Starting a new HEAP_DUMP resets the heap to default.
644 // U4: size of identifiers. We're using addresses as IDs and our heap references are stored
744 ThrowRuntimeException("Couldn't dump heap; dup(%d) failed: %s", fd_, strerror(errno));
750 ThrowRuntimeException("Couldn't dump heap; ope
1084 gc::Heap* const heap = Runtime::Current()->GetHeap(); member in class:art::hprof::gc
1414 gc::Heap* heap = Runtime::Current()->GetHeap(); local
[all...]

Completed in 299 milliseconds

123