Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 132) sorted by relevance

123456

/art/runtime/
Dobject_callbacks.h39 typedef void (ObjectCallback)(mirror::Object* obj, void* arg);
41 typedef mirror::Object* (MarkObjectCallback)(mirror::Object* obj, void* arg) WARN_UNUSED;
43 typedef void (MarkHeapReferenceCallback)(mirror::HeapReference<mirror::Object>* ref, void* arg);
44 …def void (DelayReferenceReferentCallback)(mirror::Class* klass, mirror::Reference* ref, void* arg);
48 typedef mirror::Object* (IsMarkedCallback)(mirror::Object* object, void* arg) WARN_UNUSED;
53 void* arg) WARN_UNUSED;
54 typedef void (ProcessMarkStackCallback)(void* arg);
Druntime.cc327 void Runtime::SweepSystemWeaks(IsMarkedCallback* visitor, void* arg) { in SweepSystemWeaks() argument
328 GetInternTable()->SweepInternTableWeaks(visitor, arg); in SweepSystemWeaks()
329 GetMonitorList()->SweepMonitorList(visitor, arg); in SweepSystemWeaks()
330 GetJavaVM()->SweepJniWeakGlobals(visitor, arg); in SweepSystemWeaks()
1128 void Runtime::VisitConstantRoots(RootCallback* callback, void* arg) { in VisitConstantRoots() argument
1131 mirror::ArtField::VisitRoots(callback, arg); in VisitConstantRoots()
1132 mirror::ArtMethod::VisitRoots(callback, arg); in VisitConstantRoots()
1133 mirror::Class::VisitRoots(callback, arg); in VisitConstantRoots()
1134 mirror::Reference::VisitRoots(callback, arg); in VisitConstantRoots()
1135 mirror::StackTraceElement::VisitRoots(callback, arg); in VisitConstantRoots()
[all …]
Dgc_root.h71 typedef void (RootCallback)(mirror::Object** root, void* arg, const RootInfo& root_info);
79 void VisitRoot(RootCallback* callback, void* arg, const RootInfo& info) const { in VisitRoot() argument
81 callback(reinterpret_cast<mirror::Object**>(&root_), arg, info); in VisitRoot()
85 void VisitRootIfNonNull(RootCallback* callback, void* arg, const RootInfo& info) const { in VisitRootIfNonNull() argument
87 VisitRoot(callback, arg, info); in VisitRootIfNonNull()
Dthrow_location.cc35 void ThrowLocation::VisitRoots(RootCallback* visitor, void* arg) { in VisitRoots() argument
37 visitor(&this_object_, arg, RootInfo(kRootVMInternal)); in VisitRoots()
41 visitor(reinterpret_cast<mirror::Object**>(&method_), arg, RootInfo(kRootVMInternal)); in VisitRoots()
Dtransaction.cc158 void Transaction::VisitRoots(RootCallback* callback, void* arg) { in VisitRoots() argument
160 VisitObjectLogs(callback, arg); in VisitRoots()
161 VisitArrayLogs(callback, arg); in VisitRoots()
162 VisitStringLogs(callback, arg); in VisitRoots()
165 void Transaction::VisitObjectLogs(RootCallback* callback, void* arg) { in VisitObjectLogs() argument
172 it.second.VisitRoots(callback, arg); in VisitObjectLogs()
175 callback(&new_root, arg, RootInfo(kRootUnknown)); in VisitObjectLogs()
193 void Transaction::VisitArrayLogs(RootCallback* callback, void* arg) { in VisitArrayLogs() argument
202 callback(reinterpret_cast<mirror::Object**>(&new_root), arg, RootInfo(kRootUnknown)); in VisitArrayLogs()
220 void Transaction::VisitStringLogs(RootCallback* callback, void* arg) { in VisitStringLogs() argument
[all …]
Dintern_table.cc56 void InternTable::VisitRoots(RootCallback* callback, void* arg, VisitRootFlags flags) { in VisitRoots() argument
59 strong_interns_.VisitRoots(callback, arg); in VisitRoots()
63 root.VisitRoot(callback, arg, RootInfo(kRootInternedString)); in VisitRoots()
274 void InternTable::SweepInternTableWeaks(IsMarkedCallback* callback, void* arg) { in SweepInternTableWeaks() argument
276 weak_interns_.SweepWeaks(callback, arg); in SweepInternTableWeaks()
330 void InternTable::Table::VisitRoots(RootCallback* callback, void* arg) { in VisitRoots() argument
332 intern.VisitRoot(callback, arg, RootInfo(kRootInternedString)); in VisitRoots()
335 intern.VisitRoot(callback, arg, RootInfo(kRootInternedString)); in VisitRoots()
339 void InternTable::Table::SweepWeaks(IsMarkedCallback* callback, void* arg) { in SweepWeaks() argument
340 SweepWeaks(&pre_zygote_table_, callback, arg); in SweepWeaks()
[all …]
Ddex_instruction.cc298 uint32_t arg[5]; in DumpString() local
299 GetVarArgs(arg); in DumpString()
309 os << "v" << arg[i]; in DumpString()
327 os << "v" << arg[i]; in DumpString()
340 os << "v" << arg[i]; in DumpString()
346 os << opcode << " {v" << arg[0] << ", v" << arg[1] << ", v" << arg[2] in DumpString()
347 << ", v" << arg[3] << ", v" << arg[4] << "}, thing@" << VRegB_35c(); in DumpString()
Dtransaction.h79 void VisitRoots(RootCallback* callback, void* arg)
91 void VisitRoots(RootCallback* callback, void* arg);
154 void VisitRoots(RootCallback* callback, void* arg);
177 void VisitObjectLogs(RootCallback* callback, void* arg)
180 void VisitArrayLogs(RootCallback* callback, void* arg)
183 void VisitStringLogs(RootCallback* callback, void* arg)
/art/runtime/gc/
Dreference_processor.cc91 void* arg) { in PreserveSoftReferenceCallback() argument
92 auto* const args = reinterpret_cast<ProcessReferencesArgs*>(arg); in PreserveSoftReferenceCallback()
118 void* arg) { in ProcessReferences() argument
125 process_references_args_.arg_ = arg; in ProcessReferences()
137 process_mark_stack_callback(arg); in ProcessReferences()
143 soft_reference_queue_.ClearWhiteReferences(&cleared_references_, is_marked_callback, arg); in ProcessReferences()
144 weak_reference_queue_.ClearWhiteReferences(&cleared_references_, is_marked_callback, arg); in ProcessReferences()
153 mark_object_callback, arg); in ProcessReferences()
154 process_mark_stack_callback(arg); in ProcessReferences()
160 soft_reference_queue_.ClearWhiteReferences(&cleared_references_, is_marked_callback, arg); in ProcessReferences()
[all …]
Dreference_queue.cc107 void* arg) { in ClearWhiteReferences() argument
111 if (referent_addr->AsMirrorPtr() != nullptr && !preserve_callback(referent_addr, arg)) { in ClearWhiteReferences()
128 void* arg) { in EnqueueFinalizerReferences() argument
132 if (referent_addr->AsMirrorPtr() != nullptr && !is_marked_callback(referent_addr, arg)) { in EnqueueFinalizerReferences()
133 mirror::Object* forward_address = mark_object_callback(referent_addr->AsMirrorPtr(), arg); in EnqueueFinalizerReferences()
150 void* arg) { in ForwardSoftReferences() argument
159 UNUSED(preserve_callback(referent_addr, arg)); in ForwardSoftReferences()
165 void ReferenceQueue::UpdateRoots(IsMarkedCallback* callback, void* arg) { in UpdateRoots() argument
167 list_ = down_cast<mirror::Reference*>(callback(list_, arg)); in UpdateRoots()
Dreference_processor.h44 static bool PreserveSoftReferenceCallback(mirror::HeapReference<mirror::Object>* obj, void* arg)
49 ProcessMarkStackCallback* process_mark_stack_callback, void* arg)
62 IsHeapReferenceMarkedCallback* is_marked_callback, void* arg)
64 void UpdateRoots(IsMarkedCallback* callback, void* arg)
76 MarkObjectCallback* mark_callback, void* arg) in ProcessReferencesArgs() argument
77 : is_marked_callback_(is_marked_callback), mark_callback_(mark_callback), arg_(arg) { in ProcessReferencesArgs()
Dreference_queue.h63 MarkObjectCallback* mark_object_callback, void* arg)
68 void ForwardSoftReferences(IsHeapReferenceMarkedCallback* preserve_callback, void* arg)
73 IsHeapReferenceMarkedCallback* is_marked_callback, void* arg)
87 void UpdateRoots(IsMarkedCallback* callback, void* arg)
/art/runtime/gc/allocator/
Ddlmalloc.cc53 extern "C" void DlmallocMadviseCallback(void* start, void* end, size_t used_bytes, void* arg) { in DlmallocMadviseCallback() argument
68 size_t* reclaimed = reinterpret_cast<size_t*>(arg); in DlmallocMadviseCallback()
73 extern "C" void DlmallocBytesAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg in DlmallocBytesAllocatedCallback() argument
77 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback()
81 …n "C" void DlmallocObjectsAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg) { in DlmallocObjectsAllocatedCallback() argument
85 size_t* objects_allocated = reinterpret_cast<size_t*>(arg); in DlmallocObjectsAllocatedCallback()
Ddlmalloc.h35 extern "C" void dlmalloc_inspect_all(void(*handler)(void*, void *, size_t, void*), void* arg);
45 extern "C" void DlmallocBytesAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg
46 …rn "C" void DlmallocObjectsAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg);
/art/runtime/gc/accounting/
Dspace_bitmap.cc104 void SpaceBitmap<kAlignment>::Walk(ObjectCallback* callback, void* arg) { in Walk() argument
117 (*callback)(obj, arg); in Walk()
128 SpaceBitmap::SweepCallback* callback, void* arg) { in SweepWalk() argument
170 (*callback)(pb - &pointer_buf[0], &pointer_buf[0], arg); in SweepWalk()
176 (*callback)(pb - &pointer_buf[0], &pointer_buf[0], arg); in SweepWalk()
183 mirror::Class* klass, void* arg) in WalkInstanceFields() argument
188 WalkInstanceFields(visited, callback, obj, super, arg); in WalkInstanceFields()
198 WalkFieldsInOrder(visited, callback, value, arg); in WalkInstanceFields()
208 void* arg) { in WalkFieldsInOrder() argument
213 (*callback)(obj, arg); in WalkFieldsInOrder()
[all …]
Dspace_bitmap.h43 typedef void ScanCallback(mirror::Object* obj, void* finger, void* arg);
44 typedef void SweepCallback(size_t ptr_count, mirror::Object** ptrs, void* arg);
101 void VisitRange(uintptr_t base, uintptr_t max, ObjectCallback* callback, void* arg) const;
132 void Walk(ObjectCallback* callback, void* arg)
137 void InOrderWalk(ObjectCallback* callback, void* arg)
144 uintptr_t max, SweepCallback* thunk, void* arg);
206 void* arg) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
210 mirror::Object* obj, mirror::Class* klass, void* arg)
Dremembered_set.cc67 bool* const contains_reference_to_target_space, void* arg) in RememberedSetReferenceVisitor() argument
68 : callback_(callback), ref_callback_(ref_callback), target_space_(target_space), arg_(arg), in RememberedSetReferenceVisitor()
104 bool* const contains_reference_to_target_space, void* arg) in RememberedSetObjectVisitor() argument
105 : callback_(callback), ref_callback_(ref_callback), target_space_(target_space), arg_(arg), in RememberedSetObjectVisitor()
125 space::ContinuousSpace* target_space, void* arg) { in UpdateAndMarkReferences() argument
129 &contains_reference_to_target_space, arg); in UpdateAndMarkReferences()
/art/runtime/gc/collector/
Dmark_compact.h117 static void MarkRootCallback(mirror::Object** root, void* arg, const RootInfo& root_info)
120 static mirror::Object* MarkObjectCallback(mirror::Object* root, void* arg)
123 static void MarkHeapReferenceCallback(mirror::HeapReference<mirror::Object>* obj_ptr, void* arg)
127 void* arg)
130 static void ProcessMarkStackCallback(void* arg)
134 void* arg)
148 static mirror::Object* MarkedForwardingAddressCallback(mirror::Object* object, void* arg)
183 static void UpdateRootCallback(mirror::Object** root, void* arg, const RootInfo& /*root_info*/)
195 static mirror::Object* IsMarkedCallback(mirror::Object* object, void* arg)
204 void* arg)
Dmark_compact.cc293 void MarkCompact::ProcessMarkStackCallback(void* arg) { in ProcessMarkStackCallback() argument
294 reinterpret_cast<MarkCompact*>(arg)->ProcessMarkStack(); in ProcessMarkStackCallback()
297 mirror::Object* MarkCompact::MarkObjectCallback(mirror::Object* root, void* arg) { in MarkObjectCallback() argument
298 reinterpret_cast<MarkCompact*>(arg)->MarkObject(root); in MarkObjectCallback()
303 void* arg) { in MarkHeapReferenceCallback() argument
304 reinterpret_cast<MarkCompact*>(arg)->MarkObject(obj_ptr->AsMirrorPtr()); in MarkHeapReferenceCallback()
308 void* arg) { in DelayReferenceReferentCallback() argument
309 reinterpret_cast<MarkCompact*>(arg)->DelayReferenceReferent(klass, ref); in DelayReferenceReferentCallback()
312 void MarkCompact::MarkRootCallback(Object** root, void* arg, const RootInfo& /*root_info*/) { in MarkRootCallback() argument
313 reinterpret_cast<MarkCompact*>(arg)->MarkObject(*root); in MarkRootCallback()
[all …]
Dmark_sweep.h164 static mirror::Object* VerifySystemWeakIsLiveCallback(mirror::Object* obj, void* arg)
174 static mirror::Object* MarkObjectCallback(mirror::Object* obj, void* arg)
178 static void MarkHeapReferenceCallback(mirror::HeapReference<mirror::Object>* ref, void* arg)
182 static bool HeapReferenceMarkedCallback(mirror::HeapReference<mirror::Object>* ref, void* arg)
186 static void MarkRootCallback(mirror::Object** root, void* arg, const RootInfo& root_info)
190 static void VerifyRootMarked(mirror::Object** root, void* arg, const RootInfo& root_info)
194 static void ProcessMarkStackCallback(void* arg)
198 static void MarkRootParallelCallback(mirror::Object** root, void* arg, const RootInfo& root_info)
219 static mirror::Object* IsMarkedCallback(mirror::Object* object, void* arg)
222 static void VerifyImageRootVisitor(mirror::Object* root, void* arg)
[all …]
Dsemi_space.h136 static void MarkRootCallback(mirror::Object** root, void* arg, const RootInfo& root_info)
139 static mirror::Object* MarkObjectCallback(mirror::Object* root, void* arg)
142 static void MarkHeapReferenceCallback(mirror::HeapReference<mirror::Object>* obj_ptr, void* arg)
145 static void ProcessMarkStackCallback(void* arg)
149 void* arg)
166 static bool HeapReferenceMarkedCallback(mirror::HeapReference<mirror::Object>* object, void* arg)
170 static mirror::Object* MarkedForwardingAddressCallback(mirror::Object* object, void* arg)
/art/runtime/gc/space/
Drosalloc_space.cc251 void* arg) { in Walk() argument
252 InspectAllRosAlloc(callback, arg, true); in Walk()
292 void* arg, bool do_null_callback_at_end) NO_THREAD_SAFETY_ANALYSIS { in InspectAllRosAllocWithSuspendAll() argument
300 rosalloc_->InspectAll(callback, arg); in InspectAllRosAllocWithSuspendAll()
302 callback(NULL, NULL, 0, arg); // Indicate end of a space. in InspectAllRosAllocWithSuspendAll()
309 … void* arg, bool do_null_callback_at_end) NO_THREAD_SAFETY_ANALYSIS { in InspectAllRosAlloc() argument
315 rosalloc_->InspectAll(callback, arg); in InspectAllRosAlloc()
317 callback(NULL, NULL, 0, arg); // Indicate end of a space. in InspectAllRosAlloc()
324 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end); in InspectAllRosAlloc()
329 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end); in InspectAllRosAlloc()
/art/build/
DAndroid.oat.mk32 …$$(hide) $$(DEX2OATD) --runtime-arg -Xms$(DEX2OAT_IMAGE_XMS) --runtime-arg -Xmx$(DEX2OAT_IMAGE_XMX…
55 $$(hide) $$(DEX2OATD) --runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \
/art/runtime/verifier/
Dreg_type_cache.cc591 void RegTypeCache::VisitStaticRoots(RootCallback* callback, void* arg) { in VisitStaticRoots() argument
595 Undefined().VisitRoots(callback, arg); in VisitStaticRoots()
596 Conflict().VisitRoots(callback, arg); in VisitStaticRoots()
597 Boolean().VisitRoots(callback, arg); in VisitStaticRoots()
598 Byte().VisitRoots(callback, arg); in VisitStaticRoots()
599 Short().VisitRoots(callback, arg); in VisitStaticRoots()
600 Char().VisitRoots(callback, arg); in VisitStaticRoots()
601 Integer().VisitRoots(callback, arg); in VisitStaticRoots()
602 LongLo().VisitRoots(callback, arg); in VisitStaticRoots()
603 LongHi().VisitRoots(callback, arg); in VisitStaticRoots()
[all …]
/art/compiler/
Dimage_writer.h176 static bool ComputeLazyFieldsForClassesVisitor(mirror::Class* klass, void* arg)
181 static void ComputeEagerResolvedStringsCallback(mirror::Object* obj, void* arg)
189 static bool NonImageClassesVisitor(mirror::Class* c, void* arg)
194 static void CheckNonImageClassesRemovedCallback(mirror::Object* obj, void* arg)
211 static void WalkFieldsCallback(mirror::Object* obj, void* arg)
213 static void UnbinObjectsIntoOffsetCallback(mirror::Object* obj, void* arg)
218 static void CopyAndFixupObjectsCallback(mirror::Object* obj, void* arg)

123456