Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 54) sorted by relevance

123

/art/runtime/
Dclass_loader_context_test.cc41 void VerifyContextSize(ClassLoaderContext* context, size_t expected_size) { in VerifyContextSize() argument
42 ASSERT_TRUE(context != nullptr); in VerifyContextSize()
43 ASSERT_EQ(expected_size, context->class_loader_chain_.size()); in VerifyContextSize()
46 void VerifyClassLoaderPCL(ClassLoaderContext* context, in VerifyClassLoaderPCL() argument
50 context, index, ClassLoaderContext::kPathClassLoader, classpath); in VerifyClassLoaderPCL()
53 void VerifyClassLoaderDLC(ClassLoaderContext* context, in VerifyClassLoaderDLC() argument
57 context, index, ClassLoaderContext::kDelegateLastClassLoader, classpath); in VerifyClassLoaderDLC()
60 void VerifyClassLoaderPCLFromTestDex(ClassLoaderContext* context, in VerifyClassLoaderPCLFromTestDex() argument
64 context, index, ClassLoaderContext::kPathClassLoader, test_name); in VerifyClassLoaderPCLFromTestDex()
67 void VerifyClassLoaderDLCFromTestDex(ClassLoaderContext* context, in VerifyClassLoaderDLCFromTestDex() argument
[all …]
Druntime_common.cc132 : context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcontext) {} in UContext()
144 mcontext_t& context; member
149 DumpRegister32(os, "eax", context->__ss.__eax); in Dump()
150 DumpRegister32(os, "ebx", context->__ss.__ebx); in Dump()
151 DumpRegister32(os, "ecx", context->__ss.__ecx); in Dump()
152 DumpRegister32(os, "edx", context->__ss.__edx); in Dump()
155 DumpRegister32(os, "edi", context->__ss.__edi); in Dump()
156 DumpRegister32(os, "esi", context->__ss.__esi); in Dump()
157 DumpRegister32(os, "ebp", context->__ss.__ebp); in Dump()
158 DumpRegister32(os, "esp", context->__ss.__esp); in Dump()
[all …]
Dfault_handler.h47 bool HandleFault(int sig, siginfo_t* info, void* context);
57 void GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, ArtMethod** out_method,
60 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc)
65 bool HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context)
83 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0;
96 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
114 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
124 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
134 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE NO_THREAD_SAFETY_ANALYSIS;
Dfault_handler.cc43 static bool art_fault_handler(int sig, siginfo_t* info, void* context) { in art_fault_handler() argument
44 return fault_manager.HandleFault(sig, info, context); in art_fault_handler()
167 bool FaultManager::HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context) { in HandleFaultByOtherHandlers() argument
178 if (handler->Action(sig, info, context)) { in HandleFaultByOtherHandlers()
185 bool FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { in HandleFault() argument
193 if (IsInGeneratedCode(info, context, true)) { in HandleFault()
197 if (handler->Action(sig, info, context)) { in HandleFault()
207 if (HandleFaultByOtherHandlers(sig, info, context)) { in HandleFault()
242 bool FaultManager::IsInGeneratedCode(siginfo_t* siginfo, void* context, bool check_dex_pc) { in IsInGeneratedCode() argument
271 GetMethodAndReturnPcAndSp(siginfo, context, &method_obj, &return_pc, &sp); in IsInGeneratedCode()
[all …]
Dbacktrace_helper.h40 static _Unwind_Reason_Code Callback(_Unwind_Context* context, void* arg) { in Callback() argument
42 const uintptr_t ip = _Unwind_GetIP(context); in Callback()
Doat_file_manager.cc347 const ClassLoaderContext* context, in HasCollisions() argument
357 if (context == nullptr) { in HasCollisions()
364 if (context->VerifyClassLoaderContextMatch(oat_file->GetClassLoaderContext())) { in HasCollisions()
370 std::vector<const DexFile*> dex_files_loaded = context->FlattenOpenedDexFiles(); in HasCollisions()
398 std::unique_ptr<ClassLoaderContext> context; in OpenDexFilesFromOat() local
404 context = nullptr; in OpenDexFilesFromOat()
406 context = ClassLoaderContext::CreateContextForClassLoader(class_loader, dex_elements); in OpenDexFilesFromOat()
461 !HasCollisions(oat_file.get(), context.get(), /*out*/ &error_msg); in OpenDexFilesFromOat()
Doat_file_assistant.h169 ClassLoaderContext* context = nullptr);
336 ClassLoaderContext* context);
373 bool ClassLoaderContextIsOkay(ClassLoaderContext* context);
/art/test/636-arm64-veneer-pool/src/
DMain.java1274 public void configure(Context context, Class<?> cls, Binder binder) { in configure() argument
1282 C0.m(context, binder); in configure()
1285 C1.m(context, binder); in configure()
1288 C2.m(context, binder); in configure()
1291 C3.m(context, binder); in configure()
1294 C4.m(context, binder); in configure()
1297 C5.m(context, binder); in configure()
1300 C6.m(context, binder); in configure()
1301 C7.m(context, binder); in configure()
1302 C8.m(context, binder); in configure()
[all …]
/art/runtime/arch/mips64/
Dfault_handler_mips64.cc40 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
43 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
72 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
81 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
98 void* context ATTRIBUTE_UNUSED) { in Action()
115 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
116 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/runtime/arch/mips/
Dfault_handler_mips.cc39 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
42 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
71 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
79 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
96 void* context ATTRIBUTE_UNUSED) { in Action()
113 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
114 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/461-get-reference-vreg/
Dget_reference_vreg_jni.cc30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) in TestVisitor() argument
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
72 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doNativeCallRef() local
73 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object>(value).Ptr()); in Java_Main_doNativeCallRef()
80 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doStaticNativeCallRef() local
81 TestVisitor visitor(soa.Self(), context.get(), nullptr); in Java_Main_doStaticNativeCallRef()
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc41 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, in GetMethodAndReturnPcAndSp() argument
44 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in GetMethodAndReturnPcAndSp()
72 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
102 void* context) { in Action() argument
109 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
154 void* context) { in Action() argument
155 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
/art/runtime/arch/arm/
Dfault_handler_arm.cc48 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, in GetMethodAndReturnPcAndSp() argument
51 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
91 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
102 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
128 void* context) { in Action() argument
135 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
199 void* context) { in Action() argument
200 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/004-SignalTest/
Dsignaltest.cc63 void* context) { in signalhandler() argument
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
84 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
88 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
91 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
94 UNUSED(context); in signalhandler()
/art/test/543-env-long-ref/
Denv_long_ref.cc30 TestVisitor(const ScopedObjectAccess& soa, Context* context, jobject expected_value) in TestVisitor() argument
32 : StackVisitor(soa.Self(), context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
60 std::unique_ptr<Context> context(Context::Create()); in Java_Main_lookForMyRegisters() local
61 TestVisitor visitor(soa, context.get(), value); in Java_Main_lookForMyRegisters()
/art/test/466-get-live-vreg/
Dget_live_vreg_jni.cc31 TestVisitor(Thread* thread, Context* context) REQUIRES_SHARED(Locks::mutator_lock_) in TestVisitor() argument
32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
68 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doStaticNativeCallLiveVreg() local
69 TestVisitor visitor(soa.Self(), context.get()); in Java_Main_doStaticNativeCallLiveVreg()
/art/test/457-regs/
Dregs_jni.cc31 TestVisitor(Thread* thread, Context* context) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
132 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCall() local
133 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCall()
141 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCallWithParameters() local
146 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCallWithParameters()
/art/runtime/gc/space/
Dzygote_space.cc107 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
108 DCHECK(context->space->IsZygoteSpace()); in SweepCallback()
109 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); in SweepCallback()
110 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self); in SweepCallback()
114 if (!context->swap_bitmaps) { in SweepCallback()
Dmalloc_space.cc236 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
237 space::MallocSpace* space = context->space->AsMallocSpace(); in SweepCallback()
238 Thread* self = context->self; in SweepCallback()
242 if (!context->swap_bitmaps) { in SweepCallback()
251 context->freed.objects += num_ptrs; in SweepCallback()
252 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
/art/runtime/arch/x86/
Dfault_handler_x86.cc280 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
283 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
324 bool NullPointerHandler::Action(int, siginfo_t* sig, void* context) { in Action() argument
328 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
369 bool SuspensionHandler::Action(int, siginfo_t*, void* context) { in Action() argument
384 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
439 bool StackOverflowHandler::Action(int, siginfo_t* info, void* context) { in Action() argument
440 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/compiler/optimizing/
Dinduction_var_range.h67 bool GetInductionRange(HInstruction* context,
80 bool CanGenerateRange(HInstruction* context,
100 void GenerateRange(HInstruction* context,
113 HInstruction* GenerateTakenTest(HInstruction* context, HGraph* graph, HBasicBlock* block);
164 bool IsUnitStride(HInstruction* context,
195 bool HasInductionInfo(HInstruction* context,
265 bool GenerateRangeOrLastValue(HInstruction* context,
/art/test/454-get-vreg/
Dget_vreg_jni.cc31 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
125 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doNativeCall() local
126 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object>(value).Ptr()); in Java_Main_doNativeCall()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc90 static void ThreadCountCallback(Thread*, void* context) { in ThreadCountCallback() argument
91 uint16_t& count = *reinterpret_cast<uint16_t*>(context); in ThreadCountCallback()
98 static void ThreadStatsGetterCallback(Thread* t, void* context) { in ThreadStatsGetterCallback() argument
126 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback()
/art/test/115-native-bridge/
Dnativebridge.cc190 void* context ATTRIBUTE_UNUSED) { in test_sigaction_handler()
539 void* context) { in StandardSignalHandler() argument
542 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in StandardSignalHandler()
546 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in StandardSignalHandler()
550 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in StandardSignalHandler()
553 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in StandardSignalHandler()
556 UNUSED(context); in StandardSignalHandler()
566 static bool nb_signalhandler(int sig, siginfo_t* info, void* context) { in nb_signalhandler() argument
570 return StandardSignalHandler(sig, info, context); in nb_signalhandler()
/art/runtime/openjdkjvmti/
Dti_method.cc333 LineNumberContext* context = reinterpret_cast<LineNumberContext*>(void_context); in CollectLineNumbers() local
336 context->push_back(jvmti_entry); in CollectLineNumbers()
370 LineNumberContext context; in GetLineNumberTable() local
371 bool success = dex_file->DecodeDebugPositionInfo(code_item, CollectLineNumbers, &context); in GetLineNumberTable()
377 jlong mem_size = context.size() * sizeof(jvmtiLineNumberEntry); in GetLineNumberTable()
383 memcpy(*table_ptr, context.data(), mem_size); in GetLineNumberTable()
384 *entry_count_ptr = static_cast<jint>(context.size()); in GetLineNumberTable()

123