Home
last modified time | relevance | path

Searched refs:object_header (Results 1 – 25 of 32) sorted by relevance

12

/ark/runtime_core/runtime/mem/
Dobject_helpers.h51 void DumpObject(ObjectHeader *object_header, std::basic_ostream<char, std::char_traits<char>> *o_st…
55 [[nodiscard]] ObjectHeader *GetForwardAddress(ObjectHeader *object_header);
63 static void TraverseAllObjects(ObjectHeader *object_header,
67 …static void TraverseObject(ObjectHeader *object_header, BaseClass *base_cls, const FieldVisitor &f…
70 static void TraverseArray(ObjectHeader *object_header, BaseClass *base_cls,
78 static void TraverseAllObjects(ObjectHeader *object_header,
82 …static void TraverseObject(ObjectHeader *object_header, BaseClass *base_cls, const FieldVisitor &f…
85 static void TraverseArray(ObjectHeader *object_header, BaseClass *base_cls,
94 …static void UpdateDynArray(PandaVM *vm, ObjectHeader *object_header, array_size_t index, ObjectHea…
96 …static void UpdateDynObjectRef(PandaVM *vm, ObjectHeader *object_header, size_t offset, ObjectHead…
Dobject_helpers.cpp67 void DumpObject([[maybe_unused]] ObjectHeader *object_header, in DumpObject() argument
70 auto *cls = object_header->ClassAddr<Class>(); in DumpObject()
72 …*o_stream << "Dump object object_header = " << std::hex << object_header << ", cls = " << std::hex… in DumpObject()
76 auto array = static_cast<coretypes::Array *>(object_header); in DumpObject()
77 … *o_stream << "Array " << std::hex << object_header << " " << cls->GetComponentType()->GetName() in DumpObject()
84 *o_stream << "Dump object: " << std::hex << object_header << std::endl; in DumpObject()
86 auto *str_object = static_cast<panda::coretypes::String *>(object_header); in DumpObject()
101 ObjectHeader *field_object = object_header->GetFieldObject(offset); in DumpObject()
111 auto val = object_header->GetFieldPrimitive<bool>(offset); in DumpObject()
115 auto val = object_header->GetFieldPrimitive<int8_t>(offset); in DumpObject()
[all …]
Dtlab.h181 void IterateOverObjects(const std::function<void(ObjectHeader *object_header)> &object_visitor);
188 …void IterateOverObjectsInRange(const std::function<void(ObjectHeader *object_header)> &mem_visitor,
200 IterateOverObjects([&](ObjectHeader *object_header) { in CollectAndMove()
202 if (death_checker(object_header) == ObjectStatus::ALIVE_OBJECT) { in CollectAndMove()
203 … LOG_TLAB_ALLOCATOR(DEBUG) << "CollectAndMove found alive object with addr " << object_header; in CollectAndMove()
204 object_move_visitor(object_header); in CollectAndMove()
Dtlab.cpp73 void TLAB::IterateOverObjects(const std::function<void(ObjectHeader *object_header)> &object_visito… in IterateOverObjects()
79 auto object_header = static_cast<ObjectHeader *>(cur_ptr); in IterateOverObjects() local
81 object_visitor(object_header); in IterateOverObjects()
87 void TLAB::IterateOverObjectsInRange(const std::function<void(ObjectHeader *object_header)> &mem_vi… in IterateOverObjectsInRange()
102 auto object_header = static_cast<ObjectHeader *>(current_ptr); in IterateOverObjectsInRange() local
104 mem_visitor(object_header); in IterateOverObjectsInRange()
Dbump-allocator-inl.h162 const std::function<void(ObjectHeader *object_header)> &object_visitor) in IterateOverObjects()
169 auto object_header = static_cast<ObjectHeader *>(cur_ptr); in IterateOverObjects() local
171 object_visitor(object_header); in IterateOverObjects()
221 auto *object_header = static_cast<ObjectHeader *>(current_ptr); in IterateOverObjectsInRange() local
223 mem_visitor(object_header); in IterateOverObjectsInRange()
263 IterateOverObjects([&](ObjectHeader *object_header) { in CollectAndMove()
265 if (death_checker(object_header) == ObjectStatus::ALIVE_OBJECT) { in CollectAndMove()
266 object_move_visitor(object_header); in CollectAndMove()
307 tlab->IterateOverObjects([&](ObjectHeader *object_header) { in IsLive()
308 if (object_header == obj) { in IsLive()
Dregion_space-inl.h92 auto object_header = reinterpret_cast<ObjectHeader *>(cur_ptr); in IterateOverObjects() local
93 size_t object_size = GetObjectSize(object_header); in IterateOverObjects()
94 visitor(object_header); in IterateOverObjects()
Dobject_helpers-inl.h84 void TraverseFields(const Span<Field> &fields, Class *cls, ObjectHeader *object_header, in TraverseFields() argument
92 ObjectHeader *field_object = object_header->GetFieldObject(offset); in TraverseFields()
95 field_visitor(cls, object_header, &field, field_object); in TraverseFields()
Dheap_verifier.h44 void operator()(ObjectHeader *object_header, ObjectHeader *referent);
Dhumongous_obj_allocator-inl.h134 IterateOverObjects([&](ObjectHeader *object_header) { in Collect()
135 if (death_checker_fn(object_header) == ObjectStatus::DEAD_OBJECT) { in Collect()
136 LOG(DEBUG, GC) << "DELETE OBJECT " << GetDebugInfoAboutObject(object_header); in Collect()
137 FreeUnsafe(object_header); in Collect()
Dheap_verifier.cpp44 void HeapReferenceVerifier::operator()([[maybe_unused]] ObjectHeader *object_header, ObjectHeader *… in operator ()() argument
Dbump-allocator.h92 void IterateOverObjects(const std::function<void(ObjectHeader *object_header)> &object_visitor);
Drunslots_allocator-inl.h233 IterateOverObjects([&](ObjectHeader *object_header) { in Collect()
234 LOG_RUNSLOTS_ALLOCATOR(DEBUG) << " iterate over " << std::hex << object_header; in Collect()
235 if (death_checker_fn(object_header) == ObjectStatus::DEAD_OBJECT) { in Collect()
236 LOG(DEBUG, GC) << "DELETE OBJECT " << GetDebugInfoAboutObject(object_header); in Collect()
237 FreeUnsafe<false>(object_header); in Collect()
/ark/runtime_core/runtime/mem/gc/gen-gc/
Dgen-gc.cpp36 void PreStoreInBuff([[maybe_unused]] void *object_header) {} in PreStoreInBuff() argument
207 …ecker tenured_range_young_object_checker = [&young_mr](const ObjectHeader *object_header) -> bool { in MarkYoung() argument
208 return young_mr.IsAddressInRange(ToUintPtr(object_header)); in MarkYoung()
211 …ObjectChecker from_object_checker = []([[maybe_unused]] const ObjectHeader *object_header) -> bool… in MarkYoung() argument
279 std::function<void(ObjectHeader * object_header)> move_visitor( in CollectYoungAndMove()
281 &young_delete_count](ObjectHeader *object_header) -> void { in CollectYoungAndMove() argument
282 size_t size = GetObjectSize(object_header); in CollectYoungAndMove()
286 if (IsMarked(object_header)) { in CollectYoungAndMove()
289 (void)memcpy_s(dst, size, object_header, size); in CollectYoungAndMove()
292 LOG_DEBUG_GC << "object MOVED from " << std::hex << object_header << " to " << dst in CollectYoungAndMove()
[all …]
Dgen-gc.h47 void MarkObject(ObjectHeader *object_header) override;
49 bool MarkObjectIfNotMarked(ObjectHeader *object_header) override;
51 void UnMarkObject(ObjectHeader *object_header) override;
/ark/runtime_core/runtime/mem/gc/dynamic/
Dgc_dynamic_impl.cpp46 ObjectHeader *object_header = tagged_value.GetHeapObject(); in HandleObject() local
47 if (MarkObjectIfNotMarked(object_header)) { in HandleObject()
48 AddToStack(objects_stack, object_header); in HandleObject()
78 ObjectHeader *object_header = tagged_value.GetHeapObject(); in HandleClass() local
79 if (MarkObjectIfNotMarked(object_header)) { in HandleClass()
80 AddToStack(objects_stack, object_header); in HandleClass()
/ark/runtime_core/runtime/mem/gc/lang/
Dgc_lang.cpp75 ObjectHeader *object_header = monitor->GetObject(); in CommonUpdateRefsToMovedObjects() local
76 if (object_header != nullptr) { in CommonUpdateRefsToMovedObjects()
77 MarkWord mark_word = object_header->AtomicGetMark(); in CommonUpdateRefsToMovedObjects()
81 << object_header << ", new val = 0x" << addr; in CommonUpdateRefsToMovedObjects()
/ark/runtime_core/runtime/mem/gc/
Dgc_root.cpp116 … &from_object_checker](ObjectHeader *object_header) { in VisitCardTableRoots() argument
127 if (from_object_checker(object_header)) { in VisitCardTableRoots()
128 ObjectHelpers<LanguageConfig::LANG_TYPE>::TraverseAllObjects(object_header, in VisitCardTableRoots()
178 ObjectHeader *object_header = v_register.GetReference(); in VisitRegisterRoot() local
179 if (object_header != nullptr) { in VisitRegisterRoot()
180 LOG(DEBUG, GC) << " Found root for register" << GetDebugInfoAboutObject(object_header); in VisitRegisterRoot()
181 gc_root_visitor({RootType::ROOT_FRAME, object_header}); in VisitRegisterRoot()
Dgc.cpp289 void GC::MarkObject(ObjectHeader *object_header) in MarkObject() argument
291 marker_.Mark(object_header); in MarkObject()
294 bool GC::MarkObjectIfNotMarked(ObjectHeader *object_header) in MarkObjectIfNotMarked() argument
296 ASSERT(object_header != nullptr); in MarkObjectIfNotMarked()
297 if (IsMarked(object_header)) { in MarkObjectIfNotMarked()
300 MarkObject(object_header); in MarkObjectIfNotMarked()
304 void GC::UnMarkObject(ObjectHeader *object_header) in UnMarkObject() argument
306 marker_.UnMark(object_header); in UnMarkObject()
683 ObjectHeader *object_header = vreg.GetReference(); in UpdateRefsInVRegs() local
684 if (object_header == nullptr) { in UpdateRefsInVRegs()
[all …]
Dgc.h601 virtual void MarkObject(ObjectHeader *object_header);
609 virtual bool MarkObjectIfNotMarked(ObjectHeader *object_header);
615 virtual void UnMarkObject(ObjectHeader *object_header);
/ark/runtime_core/runtime/mem/gc/g1/
Dg1-gc.h50 void MarkObject(ObjectHeader *object_header) override;
52 bool MarkObjectIfNotMarked(ObjectHeader *object_header) override;
54 void UnMarkObject(ObjectHeader *object_header) override;
/ark/runtime_core/runtime/core/
Dcore_class_linker_extension.cpp309 ObjectHeader *object_header; in CreateClass() local
311object_header = heap_manager->AllocateNonMovableObject<true>(class_root, coretypes::Class::GetSize… in CreateClass()
313object_header = heap_manager->AllocateNonMovableObject<false>(class_root, coretypes::Class::GetSiz… in CreateClass()
316 auto *res = reinterpret_cast<coretypes::Class *>(object_header); in CreateClass()
Dcore_vm.cpp233 ObjectHeader *object_header = nullptr; in InvokeEntrypointImpl() local
236 object_header = arg_array; in InvokeEntrypointImpl()
240 VMHandle<ObjectHeader> args_handle(thread, object_header); in InvokeEntrypointImpl()
/ark/runtime_core/runtime/
Ddyn_class_linker_extension.cpp165 auto object_header = in CreateClass() local
168 auto *res = reinterpret_cast<coretypes::Class *>(object_header); in CreateClass()
Dthread.cpp321 void ManagedThread::PushLocalObject(ObjectHeader **object_header) in PushLocalObject() argument
326 local_objects_.push_back(object_header); in PushLocalObject()
327 …OG(DEBUG, GC) << "PushLocalObject for thread " << std::hex << this << ", obj = " << *object_header; in PushLocalObject()
/ark/runtime_core/runtime/mem/gc/stw-gc/
Dstw-gc.h55 void UnMarkObject(ObjectHeader *object_header) override;

12