Home
last modified time | relevance | path

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

12

/art/runtime/
Dclass_table_test.cc122 CollectRootVisitor roots; in TEST_F() local
123 table.VisitRoots(roots); in TEST_F()
124 EXPECT_TRUE(roots.roots_.find(h_X.Get()) != roots.roots_.end()); in TEST_F()
125 EXPECT_TRUE(roots.roots_.find(h_Y.Get()) != roots.roots_.end()); in TEST_F()
126 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.cc2080 auto* roots = reinterpret_cast<GcRoot<mirror::Object>*>(bss_roots_); in GetBssGcRoots() local
2082 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.cc436 static void FillRootTable(uint8_t* roots_data, const std::vector<Handle<mirror::Object>>& roots) in FillRootTable() argument
440 const uint32_t length = roots.size(); in FillRootTable()
443 ObjPtr<mirror::Object> object = roots[i].Get(); in FillRootTable()
452 const std::vector<Handle<mirror::Object>>& roots, in CommitData() argument
456 size_t root_table_size = ComputeRootTableSize(roots.size()); in CommitData()
459 FillRootTable(roots_data, roots); in CommitData()
Djit_code_cache.cc380 static void DCheckRootsAreValid(const std::vector<Handle<mirror::Object>>& roots, in DCheckRootsAreValid() argument
387 for (Handle<mirror::Object> object : roots) { in DCheckRootsAreValid()
404 uint32_t roots = GetNumberOfRoots(data); in GetRootTable() local
406 *number_of_roots = roots; in GetRootTable()
408 return data - ComputeRootTableSize(roots); in GetRootTable()
421 GcRoot<mirror::Object>* roots = reinterpret_cast<GcRoot<mirror::Object>*>(roots_data); in SweepRootTables() local
424 mirror::Object* object = roots[i].Read<kWithoutReadBarrier>(); in SweepRootTables()
435 roots[i] = GcRoot<mirror::Object>(new_object); in SweepRootTables()
440 roots[i] = GcRoot<mirror::Object>(Runtime::GetWeakClassSentinel()); in SweepRootTables()
442 roots[i] = GcRoot<mirror::Object>(new_klass); in SweepRootTables()
[all …]
Djit_memory_region.h99 const std::vector<Handle<mirror::Object>>& roots,
Djit_code_cache.h266 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.cc474 void SemiSpace::VisitRoots(mirror::Object*** roots, size_t count, in VisitRoots() argument
477 auto* root = roots[i]; in VisitRoots()
488 void SemiSpace::VisitRoots(mirror::CompressedReference<mirror::Object>** roots, size_t count, in VisitRoots() argument
491 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()
1145 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info ATTRIBUTE_UNUSED) in VisitRoots() argument
1149 mark_sweep_->MarkObjectNonNullParallel(*roots[i]); in VisitRoots()
1153 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
1159 mark_sweep_->MarkObjectNonNullParallel(roots[i]->AsMirrorPtr()); in VisitRoots()
Dconcurrent_copying.h198 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info) override
205 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots,
Dconcurrent_copying.cc510 void VisitRoots(mirror::Object*** roots, in VisitRoots() argument
516 mirror::Object** root = roots[i]; in VisitRoots()
527 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
533 mirror::CompressedReference<mirror::Object>* const root = roots[i]; in VisitRoots()
953 void VisitRoots(mirror::Object*** roots, in VisitRoots() argument
958 mirror::Object** root = roots[i]; in VisitRoots()
966 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
971 mirror::CompressedReference<mirror::Object>* const root = roots[i]; in VisitRoots()
3270 mirror::Object*** roots, size_t count, const RootInfo& info ATTRIBUTE_UNUSED) { in VisitRoots() argument
3273 mirror::Object** root = roots[i]; in VisitRoots()
[all …]
Dmark_compact.h111 void VisitRoots(mirror::Object*** roots,
116 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots,
Dmark_compact.cc3635 void VisitRoots(mirror::Object*** roots, size_t count, const RootInfo& info ATTRIBUTE_UNUSED) in VisitRoots() argument
3639 mirror::Object* obj = *roots[i]; in VisitRoots()
3646 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
3652 mirror::Object* obj = roots[i]->AsMirrorPtr(); in VisitRoots()
4155 void MarkCompact::VisitRoots(mirror::Object*** roots, in VisitRoots() argument
4160 UpdateRoot(roots[i], info); in VisitRoots()
4164 MarkObjectNonNull(*roots[i]); in VisitRoots()
4169 void MarkCompact::VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
4175 UpdateRoot(roots[i], info); in VisitRoots()
4179 MarkObjectNonNull(roots[i]->AsMirrorPtr()); in VisitRoots()
/art/tools/ahat/
DREADME.txt84 Restore old presentation of sample paths from gc roots.
91 Properly mark thread and non-default root objects as roots.
134 Fix mismatch between overview and "roots" totals.
/art/openjdkjvmti/
Dti_heap.cc931 void VisitRoots(art::mirror::Object*** roots, size_t count, const art::RootInfo& info) in VisitRoots() argument
936 AddRoot(*roots[i], info); in VisitRoots()
940 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in VisitRoots() argument
946 AddRoot(roots[i]->AsMirrorPtr(), info); in VisitRoots()
1705 void VisitRoots(art::mirror::Object*** roots, size_t count, const art::RootInfo& info) override in ReplaceStrongRoots()
1707 art::mirror::Object*** end = roots + count; in ReplaceStrongRoots()
1708 for (art::mirror::Object** obj = *roots; roots != end; obj = *(++roots)) { in ReplaceStrongRoots()
1730 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in ReplaceStrongRoots()
1733 art::mirror::CompressedReference<art::mirror::Object>** end = roots + count; in ReplaceStrongRoots()
1734 for (art::mirror::CompressedReference<art::mirror::Object>* obj = *roots; roots != end; in ReplaceStrongRoots()
[all …]
Dti_class.cc388 void VisitRoots(art::mirror::Object*** roots, in VisitRoots() argument
393 if (*roots[i] == input_) { in VisitRoots()
394 *roots[i] = output_; in VisitRoots()
399 void VisitRoots(art::mirror::CompressedReference<art::mirror::Object>** roots, in VisitRoots() argument
404 if (roots[i]->AsMirrorPtr() == input_) { in VisitRoots()
405 roots[i]->Assign(output_); in VisitRoots()
/art/compiler/optimizing/
Dcode_generator.cc197 void EmitJitRoots(/*out*/std::vector<Handle<mirror::Object>>* roots)
230 /*out*/std::vector<Handle<mirror::Object>>* roots) { in EmitJitRoots() argument
231 DCHECK(roots->empty()); in EmitJitRoots()
232 roots->reserve(GetNumberOfJitRoots()); in EmitJitRoots()
239 roots->emplace_back(reinterpret_cast<StackReference<mirror::Object>*>(address)); in EmitJitRoots()
240 DCHECK(roots->back() != nullptr); in EmitJitRoots()
241 DCHECK(roots->back()->IsString()); in EmitJitRoots()
245 class_linker->GetInternTable()->InternStrong(roots->back()->AsString()); in EmitJitRoots()
252 roots->emplace_back(reinterpret_cast<StackReference<mirror::Object>*>(address)); in EmitJitRoots()
253 DCHECK(roots->back() != nullptr); in EmitJitRoots()
[all …]
Doptimizing_compiler.cc1269 std::vector<Handle<mirror::Object>> roots; in JitCompile() local
1326 roots, in JitCompile()
1396 std::vector<Handle<mirror::Object>> roots; in JitCompile() local
1397 codegen->EmitJitRoots(code_allocator.GetData(), roots_data, &roots); in JitCompile()
1399 DCHECK(std::all_of(roots.begin(), in JitCompile()
1400 roots.end(), in JitCompile()
1434 roots, in JitCompile()
Dcode_generator.h413 /*out*/std::vector<Handle<mirror::Object>>* roots)
/art/runtime/verifier/
Dmethod_verifier.h165 void VisitRoots(RootVisitor* visitor, const RootInfo& roots)
/art/dex2oat/linker/
Dimage_writer.cc2762 void VisitRoots(mirror::Object*** roots ATTRIBUTE_UNUSED, in VisitRoots()
2769 void VisitRoots(mirror::CompressedReference<mirror::Object>** roots, in VisitRoots() argument
2776 ObjPtr<mirror::Object> old_ptr = roots[i]->AsMirrorPtr(); in VisitRoots()
2777 roots[i]->Assign(image_writer_->GetImageAddress(old_ptr.Ptr())); in VisitRoots()

12