Searched defs:exception (Results 1 - 21 of 21) sorted by last modified time

/art/runtime/
H A Dcheck_jni.cc1218 // Verify that, if an exception has been raised, the native code doesn't
1221 mirror::Throwable* exception = self->GetException(); local
1222 AbortF("JNI %s called with pending exception %s",
1224 exception->Dump().c_str());
1882 // The JNI specification doesn't say it's okay to call FatalError with a pending exception,
1883 // but you're about to abort anyway, and it's quite likely that you have a pending exception,
H A Dclass_linker_test.cc54 mirror::Object* exception = self->GetException(); local
58 EXPECT_TRUE(exception->InstanceOf(exception_class));
H A Ddebugger.cc2847 // We need to be sure no exception is pending when calling JdwpState::PostLocationEvent.
2849 // we temporarily clear the current thread's exception (if any) and will restore it after
2851 // Note: the only way to get a pending exception here is to suspend on a move-exception
2899 * Finds the location where this exception will be caught. We search until we reach the top
2900 * frame, in which case this exception is considered uncaught.
2904 CatchLocationFinder(Thread* self, const Handle<mirror::Throwable>& exception, Context* context)
2907 exception_(exception),
2927 // First Java method found. It is either the method that threw the exception,
2928 // or the Java native method that is reporting an exception throw
4073 Handle<mirror::Throwable> exception = hs.NewHandle(soa.Self()->GetException()); local
4157 BuildInvokeReply(JDWP::ExpandBuf* pReply, uint32_t request_id, JDWP::JdwpTag result_tag, uint64_t result_value, JDWP::ObjectId exception) argument
[all...]
H A Djni_internal.cc69 // exception; there the "L;" must be present ("[La/b/C;"). Historically we've
277 ScopedLocalRef<jthrowable> exception(
279 if (exception.get() == nullptr) {
283 soa.Self()->SetException(soa.Decode<mirror::Throwable*>(exception.get()));
433 mirror::Throwable* exception = soa.Decode<mirror::Throwable*>(java_exception); local
434 if (exception == nullptr) {
437 soa.Self()->SetException(exception);
458 // If we have no exception to describe, pass through.
467 ScopedLocalRef<jthrowable> exception(env,
469 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception
487 mirror::Object* exception = soa.Self()->GetException(); local
[all...]
H A Djni_internal_test.cc62 jthrowable exception = env_->ExceptionOccurred(); local
63 EXPECT_NE(nullptr, exception);
65 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class));
787 // a pending exception.
841 // a pending exception
2031 // This checks how ExceptionDescribe handles call without exception.
2039 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); local
2040 ASSERT_TRUE(exception != nullptr);
2042 EXPECT_EQ(JNI_OK, env_->Throw(exception));
2046 EXPECT_TRUE(env_->IsSameObject(exception, thrown_exceptio
[all...]
H A Dquick_exception_handler.cc58 CatchBlockStackVisitor(Thread* self, Context* context, Handle<mirror::Throwable>* exception,
62 exception_(exception),
81 // No next method? Check exception handler is set up for the unhandled exception handler
132 // The exception we're looking for the catch block of.
134 // The quick exception handler we're visiting for.
140 void QuickExceptionHandler::FindCatch(mirror::Throwable* exception) { argument
143 mirror::String* msg = exception->GetDetailMessage();
145 self_->DumpStack(LOG(INFO) << "Delivering exception: " << PrettyTypeOf(exception)
[all...]
H A Druntime.cc384 mirror::Throwable* exception = self->GetException(); variable
385 os << "Pending exception " << exception->Dump();
1837 // Throwing an exception may cause its class initialization. If we mark the transaction
1838 // aborted before that, we may warn with a false alarm. Throwing the exception before
1847 // Passing nullptr means we rethrow an exception with the earlier transaction abort message.
H A Dthread.cc99 // throwing the StackOverflow exception.
202 // The exception that was pending before deoptimization (or null if there was no pending
203 // exception).
236 mirror::Throwable* exception) {
241 exception,
247 mirror::Throwable** exception,
253 *exception = record->GetPendingException();
769 // We cannot keep the exception around, as we're deleting self. Try to be helpful and log it.
1492 // assumption that there is no exception pending on entry. Thus, stash any pending exception
233 PushDeoptimizationContext(const JValue& return_value, bool is_reference, bool from_code, mirror::Throwable* exception) argument
246 PopDeoptimizationContext(JValue* result, mirror::Throwable** exception, bool* from_code) argument
1656 mirror::Throwable* exception = GetException(); local
1664 mirror::Throwable* exception = GetException(); local
2579 mirror::Throwable* exception = GetException(); local
2601 JValue(), /*is_reference */ false, /* from_code */ false, exception); local
[all...]
H A Dthread.h354 return tlsPtr_.exception != nullptr;
358 return tlsPtr_.exception;
369 tlsPtr_.exception = nullptr;
372 // Find catch block and perform long jump to appropriate exception handle
381 // exception such as a result of class loading. So there can be nested
382 // cases of exception handling and multiple contexts being used.
397 // Returns whether the given exception was thrown by the current Java method being executed
399 bool IsExceptionThrownByCurrentMethod(mirror::Throwable* exception) const
419 // If 'msg' is null, no detail message is set. An exception must be pending, and will be
420 // used as the new exception'
1369 mirror::Throwable* exception; variable
[all...]
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc203 // In the case of checked exceptions that aren't declared, the exception must be wrapped by
205 mirror::Throwable* exception = soa.Self()->GetException(); local
206 if (exception->IsCheckedException()) {
222 mirror::Class* exception_class = exception->GetClass();
/art/runtime/interpreter/
H A Dinterpreter_goto_table_impl.cc128 * - when an exception is thrown.
277 Throwable* exception = self->GetException(); local
278 DCHECK(exception != nullptr) << "No pending exception on MOVE_EXCEPTION instruction";
279 shadow_frame.SetVRegReference(inst->VRegA_11x(inst_data), exception);
353 // Return the pending exception.
617 Object* exception = shadow_frame.GetVRegReference(inst->VRegA_11x(inst_data)); local
618 if (UNLIKELY(exception == nullptr)) {
619 ThrowNullPointerException("throw with null exception");
620 } else if (do_assignability_check && !exception
[all...]
H A Dinterpreter_switch_impl.cc203 Throwable* exception = self->GetException(); local
204 DCHECK(exception != nullptr) << "No pending exception on MOVE_EXCEPTION instruction";
205 shadow_frame.SetVRegReference(inst->VRegA_11x(inst_data), exception);
292 // Return the pending exception.
565 Object* exception = shadow_frame.GetVRegReference(inst->VRegA_11x(inst_data)); local
566 if (UNLIKELY(exception == nullptr)) {
567 ThrowNullPointerException("throw with null exception");
568 } else if (do_assignability_check && !exception->GetClass()->IsThrowableClass()) {
573 exception
[all...]
/art/runtime/mirror/
H A Dfield-inl.h44 // Can't resolve, clear the exception if it isn't OOME and continue with a null type.
45 mirror::Throwable* exception = self->GetException(); local
46 if (exception->GetClass()->DescriptorEquals("Ljava/lang/OutOfMemoryError;")) {
/art/runtime/native/
H A Djava_lang_VMClassLoader.cc54 mirror::Class* exception = self->GetException()->GetClass(); local
55 if (exception == eiie_class || exception == iae_class || exception == ncdfe_class) {
/art/runtime/verifier/
H A Dmethod_verifier.cc844 // Flag instructions guarded by a "try" block and check exception handlers.
1009 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "bad exception entry: startAddr=" << start
1037 << "exception handler starts at bad address (" << dex_pc << ")";
1042 << "exception handler begins with move-result* (" << dex_pc << ")";
1046 // Ensure exception types are resolved so that they don't need resolution to be delivered,
1047 // unresolved exception types will be ignored by exception delivery
1984 * unconditional branches, method returns, and exception throws.
1988 * throw an exception that is handled by an encompassing "try"
2010 * can throw an exception, w
3705 const RegType& exception = ResolveClassAndCheckAccess(iterator.GetHandlerTypeIndex()); local
[all...]
/art/compiler/driver/
H A Dcompiler_driver.cc666 LOG(FATAL) << "Unexpected exception compiling: " << PrettyMethod(method_idx, dex_file) << "\n"
1101 // Resolve exception classes referenced by the loaded classes. The catch logic assumes
1103 // Do this here so that exception classes appear to have been specified image classes.
1984 mirror::Throwable* exception = self->GetException(); local
1986 const char* descriptor = exception->GetClass()->GetDescriptor(&temp);
2003 LOG(FATAL) << "Unexpected exception " << exception->Dump();
2163 mirror::Throwable* exception = soa.Self()->GetException(); variable
2164 VLOG(compiler) << "Exception during type resolution: " << exception->Dump();
2165 if (exception
2457 mirror::Throwable* exception = soa.Self()->GetException(); variable
[all...]
H A Dcompiler_driver_test.cc164 // Force non-virtual call to AbstractClass foo, will throw AbstractMethodError exception.
168 jthrowable exception = env_->ExceptionOccurred(); local
171 EXPECT_TRUE(env_->IsInstanceOf(exception, jlame));
/art/compiler/optimizing/
H A Dinstruction_builder.cc361 // Stop in native debugger after the exception has been moved.
682 // Clean up any exception left by type resolution.
696 // Clean up any exception left by type resolution.
2635 HInstruction* exception = LoadLocal(instruction.VRegA_11x(), Primitive::kPrimNot); local
2636 AppendInstruction(new (arena_) HThrow(exception, dex_pc));
/art/compiler/utils/arm64/
H A Dassembler_arm64.cc35 for (const std::unique_ptr<Arm64Exception>& exception : exception_blocks_) {
36 EmitExceptionPoll(exception.get());
619 void Arm64Assembler::EmitExceptionPoll(Arm64Exception *exception) { argument
621 temps.Exclude(reg_x(exception->scratch_.AsXRegister()));
624 // Bind exception poll entry.
625 ___ Bind(exception->Entry());
626 if (exception->stack_adjust_ != 0) { // Fix up the frame.
627 DecreaseFrameSize(exception->stack_adjust_);
629 // Pass exception object as argument.
631 ___ Mov(reg_x(X0), reg_x(exception
[all...]
/art/compiler/utils/mips/
H A Dassembler_mips.cc2903 void MipsAssembler::EmitExceptionPoll(MipsExceptionSlowPath* exception) { argument
2904 Bind(exception->Entry());
2905 if (exception->stack_adjust_ != 0) { // Fix up the frame.
2906 DecreaseFrameSize(exception->stack_adjust_);
2908 // Pass exception object as argument.
2911 Move(A0, exception->scratch_.AsCoreRegister());
/art/compiler/utils/mips64/
H A Dassembler_mips64.cc2455 void Mips64Assembler::EmitExceptionPoll(Mips64ExceptionSlowPath* exception) { argument
2456 Bind(exception->Entry());
2457 if (exception->stack_adjust_ != 0) { // Fix up the frame.
2458 DecreaseFrameSize(exception->stack_adjust_);
2460 // Pass exception object as argument.
2463 Move(A0, exception->scratch_.AsGpuRegister());

Completed in 223 milliseconds