/art/runtime/ |
H A D | runtime_linux.cc | 48 // Stores the context of the signal that was unexpected and will terminate the runtime. The 153 context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcontext) { 159 DumpRegister32(os, "eax", context->__ss.__eax); 160 DumpRegister32(os, "ebx", context->__ss.__ebx); 161 DumpRegister32(os, "ecx", context->__ss.__ecx); 162 DumpRegister32(os, "edx", context->__ss.__edx); 165 DumpRegister32(os, "edi", context->__ss.__edi); 166 DumpRegister32(os, "esi", context->__ss.__esi); 167 DumpRegister32(os, "ebp", context->__ss.__ebp); 168 DumpRegister32(os, "esp", context 290 mcontext_t& context; member in struct:art::UContext [all...] |
H A D | fault_handler.h | 47 void HandleFault(int sig, siginfo_t* info, void* context); 48 void HandleNestedSignal(int sig, siginfo_t* info, void* context); 54 // Note that the following two functions are called in the context of a signal handler. 58 void GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, ArtMethod** out_method, 61 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc) 66 bool HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context) 84 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0; 97 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE; 107 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE; 117 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRID [all...] |
H A D | fault_handler.cc | 57 // our secondary signal handler gets called in a signal context. This results in 82 static void art_fault_handler(int sig, siginfo_t* info, void* context) { argument 83 fault_manager.HandleFault(sig, info, context); 87 static void art_nested_signal_handler(int sig, siginfo_t* info, void* context) { argument 88 fault_manager.HandleNestedSignal(sig, info, context); 149 bool FaultManager::HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context) { argument 215 if (handler->Action(sig, info, context)) { 246 void FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { argument 252 if (IsInGeneratedCode(info, context, true)) { 256 if (handler->Action(sig, info, context)) { 310 IsInGeneratedCode(siginfo_t* siginfo, void* context, bool check_dex_pc) argument 418 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* siginfo, void* context) argument [all...] |
H A D | debugger.cc | 23 #include "arch/context.h" 824 OwnedMonitorVisitor(Thread* thread, Context* context, 828 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), 864 std::unique_ptr<Context> context(Context::Create()); 865 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths); 1566 static bool Callback(void* context, const DexFile::PositionInfo& entry) { argument 1567 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context); 1594 DebugCallbackContext context; local 1595 context.numItems = 0; 1596 context 1649 DebugCallbackContext context; local 3733 DebugCallbackContext* context = reinterpret_cast<DebugCallbackContext*>(raw_context); local [all...] |
H A D | oat_file.cc | 582 } context; 584 dl_iterate_phdr(dl_iterate_context::callback, &context); 585 shared_objects_before_ = context.count; 692 auto* context = reinterpret_cast<dl_iterate_context*>(data); 693 context->shared_objects_seen++; 694 if (context->shared_objects_seen < context->shared_objects_before) { 708 if (vaddr <= context->begin_ && context->begin_ < vaddr + memsz) { 722 context [all...] |
/art/test/004-SignalTest/ |
H A D | signaltest.cc | 51 void* context) { 58 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 62 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 66 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 69 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 72 UNUSED(context); 50 signalhandler(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
|
/art/test/461-get-reference-vreg/ |
H A D | get_reference_vreg_jni.cc | 17 #include "arch/context.h" 30 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) 32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), 72 std::unique_ptr<Context> context(Context::Create()); 73 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value)); 80 std::unique_ptr<Context> context(Context::Create()); 81 TestVisitor visitor(soa.Self(), context.get(), nullptr);
|
/art/runtime/arch/mips/ |
H A D | fault_handler_mips.cc | 39 void* context ATTRIBUTE_UNUSED) { 42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument 45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 75 void* context) { 80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 91 void* context ATTRIBUTE_UNUSED) { 108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { argument 109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 74 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
|
/art/runtime/arch/mips64/ |
H A D | fault_handler_mips64.cc | 39 void* context ATTRIBUTE_UNUSED) { 42 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument 45 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 75 void* context) { 80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 91 void* context ATTRIBUTE_UNUSED) { 108 bool StackOverflowHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { argument 109 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 74 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument
|
/art/sigchainlib/ |
H A D | sigchain.h | 33 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context);
|
H A D | sigchain.cc | 123 static void sigchainlib_managed_handler_sigaction(int sig, siginfo_t* info, void* context) { argument 124 InvokeUserSignalHandler(sig, info, context); 141 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { argument 157 if (managed(sig, info, context)) { 176 action.sa_sigaction(sig, info, context); 222 // This will only occur outside of a signal context since we have 310 // Don't call this from within a signal context as it makes calls to
|
H A D | sigchain_dummy.cc | 65 void* context ATTRIBUTE_UNUSED) {
|
/art/test/466-get-live-vreg/ |
H A D | get_live_vreg_jni.cc | 17 #include "arch/context.h" 31 TestVisitor(Thread* thread, Context* context) SHARED_REQUIRES(Locks::mutator_lock_) 32 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} 68 std::unique_ptr<Context> context(Context::Create()); 69 TestVisitor visitor(soa.Self(), context.get());
|
/art/test/543-env-long-ref/ |
H A D | env_long_ref.cc | 17 #include "arch/context.h" 30 TestVisitor(const ScopedObjectAccess& soa, Context* context, jobject expected_value) 32 : StackVisitor(soa.Self(), context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), 60 std::unique_ptr<Context> context(Context::Create()); 61 TestVisitor visitor(soa, context.get(), value);
|
/art/runtime/arch/arm64/ |
H A D | fault_handler_arm64.cc | 42 void* context) { 46 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 56 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, argument 59 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); 88 void* context) { 93 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 112 void* context) { 118 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); 163 void* context) { 164 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); 41 HandleNestedSignal(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 87 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 111 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 162 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument [all...] |
/art/runtime/arch/arm/ |
H A D | fault_handler_arm.cc | 50 void* context) { 56 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 67 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo ATTRIBUTE_UNUSED, void* context, argument 70 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 111 void* context) { 119 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 139 void* context) { 145 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 209 void* context) { 210 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 49 HandleNestedSignal(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 110 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 138 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument 208 Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info ATTRIBUTE_UNUSED, void* context) argument [all...] |
/art/test/457-regs/ |
H A D | regs_jni.cc | 17 #include "arch/context.h" 31 TestVisitor(Thread* thread, Context* context) 33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} 132 std::unique_ptr<Context> context(Context::Create()); 133 TestVisitor visitor(soa.Self(), context.get()); 141 std::unique_ptr<Context> context(Context::Create()); 146 TestVisitor visitor(soa.Self(), context.get());
|
/art/compiler/optimizing/ |
H A D | induction_var_range.h | 60 * Given a context denoted by the first instruction, returns a possibly conservative 65 bool GetInductionRange(HInstruction* context, 77 * bound expressions on the instruction in the given context. The need_finite_test 81 bool CanGenerateCode(HInstruction* context, 88 * instruction in the given context. Code for the lower and upper bound expression are 101 void GenerateRangeCode(HInstruction* context, 109 * Generates explicit taken-test for the loop in the given context. Code is generated in 114 void GenerateTakenTest(HInstruction* context, 184 bool GenerateCode(HInstruction* context,
|
H A D | induction_var_range.cc | 126 bool InductionVarRange::GetInductionRange(HInstruction* context, argument 131 HLoopInformation* loop = context->GetBlock()->GetLoopInformation(); // closest enveloping loop 153 bool in_body = context->GetBlock() != header; 190 bool InductionVarRange::CanGenerateCode(HInstruction* context, argument 194 return GenerateCode(context, 201 void InductionVarRange::GenerateRangeCode(HInstruction* context, argument 208 if (!GenerateCode(context, instruction, graph, block, lower, upper, nullptr, &b1, &b2)) { 213 void InductionVarRange::GenerateTakenTest(HInstruction* context, argument 218 if (!GenerateCode(context, context, grap 605 GenerateCode(HInstruction* context, HInstruction* instruction, HGraph* graph, HBasicBlock* block, HInstruction** lower, HInstruction** upper, HInstruction** taken_test, bool* needs_finite_test, bool* needs_taken_test) const argument [all...] |
/art/runtime/gc/space/ |
H A D | zygote_space.cc | 105 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); local 106 DCHECK(context->space->IsZygoteSpace()); 107 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); 108 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self); 112 if (!context->swap_bitmaps) {
|
H A D | malloc_space.cc | 232 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); local 233 space::MallocSpace* space = context->space->AsMallocSpace(); 234 Thread* self = context->self; 238 if (!context->swap_bitmaps) { 247 context->freed.objects += num_ptrs; 248 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs);
|
/art/runtime/arch/x86/ |
H A D | fault_handler_x86.cc | 236 void FaultManager::HandleNestedSignal(int, siginfo_t*, void* context) { argument 246 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 251 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, argument 254 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); 295 bool NullPointerHandler::Action(int, siginfo_t*, void* context) { argument 296 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 335 bool SuspensionHandler::Action(int, siginfo_t*, void* context) { argument 354 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 409 bool StackOverflowHandler::Action(int, siginfo_t* info, void* context) { argument 410 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); [all...] |
/art/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 85 static void ThreadCountCallback(Thread*, void* context) { argument 86 uint16_t& count = *reinterpret_cast<uint16_t*>(context); 93 static void ThreadStatsGetterCallback(Thread* t, void* context) { argument 121 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context);
|
/art/test/454-get-vreg/ |
H A D | get_vreg_jni.cc | 17 #include "arch/context.h" 31 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) 33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), 125 std::unique_ptr<Context> context(Context::Create()); 126 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object*>(value));
|
/art/test/115-native-bridge/ |
H A D | nativebridge.cc | 189 void* context ATTRIBUTE_UNUSED) { 414 static bool nb_signalhandler(int sig, siginfo_t* info ATTRIBUTE_UNUSED, void* context) { argument 418 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 422 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 426 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 429 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); 432 UNUSED(context);
|