Home
last modified time | relevance | path

Searched refs:roots (Results 1 – 23 of 23) sorted by relevance

/art/runtime/
Dclass_table_test.cc120 CollectRootVisitor roots; in TEST_F() local
121 table.VisitRoots(roots); in TEST_F()
122 EXPECT_TRUE(roots.roots_.find(h_X.Get()) != roots.roots_.end()); in TEST_F()
123 EXPECT_TRUE(roots.roots_.find(h_Y.Get()) != roots.roots_.end()); in TEST_F()
124 EXPECT_TRUE(roots.roots_.find(obj_X.Get()) != roots.roots_.end()); in TEST_F()
Dgc_root.h125 virtual void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info)
128 virtual void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, size_t count,
137 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info) override in VisitRoots() argument
140 VisitRoot(*roots[i], info); in VisitRoots()
144 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, size_t count, in VisitRoots() argument
148 VisitRoot(roots[i]->AsMirrorPtr(), info); in VisitRoots()
196 mirror::CompressedReference<mirror::Object>* roots[1] = { &root_ }; in VisitRoot() local
197 visitor->VisitRoots(roots, 1u, info); in VisitRoot()
Doat_file.cc1787 auto* roots = reinterpret_cast<GcRoot<mirror::Object>*>(bss_roots_); in GetBssGcRoots() local
1789 return ArrayRef<GcRoot<mirror::Object>>(roots, roots_end - roots); in GetBssGcRoots()
/art/test/1945-proxy-method-arguments/
Dinfo.txt2 thread stack roots when visiting Quick frames roots (b/73149739).
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DParser.java189 List<RootData> roots = new ArrayList<RootData>(); in parseInternal() local
291 roots.add(new RootData(objectId, RootType.JNI_GLOBAL)); in parseInternal()
299 roots.add(new RootData(objectId, RootType.JNI_LOCAL)); in parseInternal()
307 roots.add(new RootData(objectId, RootType.JAVA_FRAME)); in parseInternal()
314 roots.add(new RootData(objectId, RootType.NATIVE_STACK)); in parseInternal()
320 roots.add(new RootData(objectId, RootType.STICKY_CLASS)); in parseInternal()
327 roots.add(new RootData(objectId, RootType.THREAD_BLOCK)); in parseInternal()
333 roots.add(new RootData(objectId, RootType.MONITOR)); in parseInternal()
341 roots.add(new RootData(objectId, RootType.THREAD)); in parseInternal()
520 roots.add(new RootData(objectId, RootType.INTERNED_STRING)); in parseInternal()
[all …]
/art/runtime/jit/
Djit_memory_region.cc435 static void FillRootTable(uint8_t* roots_data, const std::vector<Handle<mirror::Object>>& roots) in FillRootTable() argument
439 const uint32_t length = roots.size(); in FillRootTable()
442 ObjPtr<mirror::Object> object = roots[i].Get(); in FillRootTable()
451 const std::vector<Handle<mirror::Object>>& roots, in CommitData() argument
455 size_t root_table_size = ComputeRootTableSize(roots.size()); in CommitData()
458 FillRootTable(roots_data, roots); in CommitData()
Djit_code_cache.cc396 static void DCheckRootsAreValid(const std::vector<Handle<mirror::Object>>& roots, in DCheckRootsAreValid() argument
403 for (Handle<mirror::Object> object : roots) { in DCheckRootsAreValid()
420 uint32_t roots = GetNumberOfRoots(data); in GetRootTable() local
422 *number_of_roots = roots; in GetRootTable()
424 return data - ComputeRootTableSize(roots); in GetRootTable()
435 GcRoot<mirror::Object>* roots = reinterpret_cast<GcRoot<mirror::Object>*>(roots_data); in SweepRootTables() local
438 mirror::Object* object = roots[i].Read<kWithoutReadBarrier>(); in SweepRootTables()
451 roots[i] = GcRoot<mirror::Object>(new_object); in SweepRootTables()
455 reinterpret_cast<GcRoot<mirror::Class>*>(&roots[i]), in SweepRootTables()
663 const std::vector<Handle<mirror::Object>>& roots, in Commit() argument
[all …]
Djit_memory_region.h99 const std::vector<Handle<mirror::Object>>& roots,
Djit_code_cache.h267 const std::vector<Handle<mirror::Object>>& roots,
/art/runtime/gc/collector/
Dsemi_space.h148 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info) override
151 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots,
Dsemi_space.cc473 void SemiSpace::VisitRoots(mirror::Object*** roots, size_t count, in VisitRoots() argument
476 auto* root = roots[i]; in VisitRoots()
487 void SemiSpace::VisitRoots(mirror::CompressedReference<mirror::Object>** roots, size_t count, in VisitRoots() argument
490 MarkObjectIfNotInToSpace(roots[i]); in VisitRoots()
Dmark_sweep.h195 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info) override
200 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots,
Dmark_sweep.cc589 void MarkSweep::VisitRoots(mirror::Object*** roots, in VisitRoots() argument
593 MarkObjectNonNull(*roots[i]); in VisitRoots()
597 void MarkSweep::VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
601 MarkObjectNonNull(roots[i]->AsMirrorPtr()); in VisitRoots()
1144 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info ATTRIBUTE_UNUSED) in VisitRoots() argument
1148 mark_sweep_->MarkObjectNonNullParallel(*roots[i]); in VisitRoots()
1152 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
1158 mark_sweep_->MarkObjectNonNullParallel(roots[i]->AsMirrorPtr()); in VisitRoots()
Dconcurrent_copying.h186 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info) override
193 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots,
Dconcurrent_copying.cc470 void VisitRoots(mirror::Object*** roots, in VisitRoots() argument
476 mirror::Object** root = roots[i]; in VisitRoots()
487 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
493 mirror::CompressedReference<mirror::Object>* const root = roots[i]; in VisitRoots()
916 void VisitRoots(mirror::Object*** roots, in VisitRoots() argument
921 mirror::Object** root = roots[i]; in VisitRoots()
929 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
934 mirror::CompressedReference<mirror::Object>* const root = roots[i]; in VisitRoots()
3153 mirror::Object*** roots, size_t count, const RootInfo& info ATTRIBUTE_UNUSED) { in VisitRoots() argument
3156 mirror::Object** root = roots[i]; in VisitRoots()
[all …]
/art/tools/ahat/
DREADME.txt74 Restore old presentation of sample paths from gc roots.
81 Properly mark thread and non-default root objects as roots.
124 Fix mismatch between overview and "roots" totals.
/art/openjdkjvmti/
Dti_heap.cc933 void VisitRoots(art::mirror::Object*** roots, size_t count, const art::RootInfo& info) in VisitRoots() argument
938 AddRoot(*roots[i], info); in VisitRoots()
942 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in VisitRoots() argument
948 AddRoot(roots[i]->AsMirrorPtr(), info); in VisitRoots()
1707 void VisitRoots(art::mirror::Object*** roots, size_t count, const art::RootInfo& info) override in ReplaceStrongRoots()
1709 art::mirror::Object*** end = roots + count; in ReplaceStrongRoots()
1710 for (art::mirror::Object** obj = *roots; roots != end; obj = *(++roots)) { in ReplaceStrongRoots()
1732 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in ReplaceStrongRoots()
1735 art::mirror::CompressedReference<art::mirror::Object>** end = roots + count; in ReplaceStrongRoots()
1736 for (art::mirror::CompressedReference<art::mirror::Object>* obj = *roots; roots != end; in ReplaceStrongRoots()
[all …]
Dti_class.cc390 void VisitRoots(art::mirror::Object*** roots, in VisitRoots() argument
395 if (*roots[i] == input_) { in VisitRoots()
396 *roots[i] = output_; in VisitRoots()
401 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in VisitRoots() argument
406 if (roots[i]->AsMirrorPtr() == input_) { in VisitRoots()
407 roots[i]->Assign(output_); in VisitRoots()
/art/compiler/optimizing/
Dcode_generator.cc193 void EmitJitRoots(/*out*/std::vector<Handle<mirror::Object>>* roots)
226 /*out*/std::vector<Handle<mirror::Object>>* roots) { in EmitJitRoots() argument
227 DCHECK(roots->empty()); in EmitJitRoots()
228 roots->reserve(GetNumberOfJitRoots()); in EmitJitRoots()
235 roots->emplace_back(reinterpret_cast<StackReference<mirror::Object>*>(address)); in EmitJitRoots()
236 DCHECK(roots->back() != nullptr); in EmitJitRoots()
237 DCHECK(roots->back()->IsString()); in EmitJitRoots()
241 class_linker->GetInternTable()->InternStrong(roots->back()->AsString()); in EmitJitRoots()
248 roots->emplace_back(reinterpret_cast<StackReference<mirror::Object>*>(address)); in EmitJitRoots()
249 DCHECK(roots->back() != nullptr); in EmitJitRoots()
[all …]
Doptimizing_compiler.cc1239 std::vector<Handle<mirror::Object>> roots; in JitCompile() local
1292 roots, in JitCompile()
1362 std::vector<Handle<mirror::Object>> roots; in JitCompile() local
1363 codegen->EmitJitRoots(code_allocator.GetData(), roots_data, &roots); in JitCompile()
1365 DCHECK(std::all_of(roots.begin(), in JitCompile()
1366 roots.end(), in JitCompile()
1400 roots, in JitCompile()
Dcode_generator.h392 /*out*/std::vector<Handle<mirror::Object>>* roots)
/art/runtime/verifier/
Dmethod_verifier.h183 void VisitRoots(RootVisitor* visitor, const RootInfo& roots)
/art/dex2oat/linker/
Dimage_writer.cc1896 std::vector<ObjPtr<mirror::Object>> roots; in ReleaseRoots() local
1897 roots.swap(roots_); in ReleaseRoots()
1898 return roots; in ReleaseRoots()
2746 void VisitRoots(mirror::Object*** roots ATTRIBUTE_UNUSED, in VisitRoots()
2753 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
2760 ObjPtr<mirror::Object> old_ptr = roots[i]->AsMirrorPtr(); in VisitRoots()
2761 roots[i]->Assign(image_writer_->GetImageAddress(old_ptr.Ptr())); in VisitRoots()