diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-02-26 10:56:09 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-03-03 17:50:49 +0000 |
commit | 7642cfc90fc9c3ebfd8e3b5041915705c93b5cf0 (patch) | |
tree | 807b3c797483310ac23954c5eddb7441b91749c5 /runtime/jni_internal.cc | |
parent | dc47e986941b1a3754447fabea272485f3f0f382 (diff) | |
download | art-7642cfc90fc9c3ebfd8e3b5041915705c93b5cf0.tar.gz art-7642cfc90fc9c3ebfd8e3b5041915705c93b5cf0.tar.bz2 art-7642cfc90fc9c3ebfd8e3b5041915705c93b5cf0.zip |
Change how we report exceptions to the debugger.
This is only a refactoring/cleanup. Bug fixes with respect
to catch location, and more cleanups will follow.
Change-Id: I30d3c6260b0c8f8115a811621397225b88f2063a
Diffstat (limited to 'runtime/jni_internal.cc')
-rw-r--r-- | runtime/jni_internal.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/jni_internal.cc b/runtime/jni_internal.cc index 37ad46e209..561302e33a 100644 --- a/runtime/jni_internal.cc +++ b/runtime/jni_internal.cc @@ -466,7 +466,6 @@ class JNI { auto old_throw_method(hs.NewHandle<mirror::ArtMethod>(nullptr)); auto old_exception(hs.NewHandle<mirror::Throwable>(nullptr)); uint32_t old_throw_dex_pc; - bool old_is_exception_reported; { ThrowLocation old_throw_location; mirror::Throwable* old_exception_obj = soa.Self()->GetException(&old_throw_location); @@ -474,7 +473,6 @@ class JNI { old_throw_method.Assign(old_throw_location.GetMethod()); old_exception.Assign(old_exception_obj); old_throw_dex_pc = old_throw_location.GetDexPc(); - old_is_exception_reported = soa.Self()->IsExceptionReportedToInstrumentation(); soa.Self()->ClearException(); } ScopedLocalRef<jthrowable> exception(env, @@ -496,7 +494,6 @@ class JNI { old_throw_dex_pc); soa.Self()->SetException(gc_safe_throw_location, old_exception.Get()); - soa.Self()->SetExceptionReportedToInstrumentation(old_is_exception_reported); } static jthrowable ExceptionOccurred(JNIEnv* env) { |