diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-03-09 10:11:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-09 10:11:03 +0000 |
commit | 5c9d8f0d2948c2b4fe4258f96e3598ad5b8fa23b (patch) | |
tree | 7510031e119cf981cdb6aafc5e5c2299aa06590d /runtime/entrypoints/quick | |
parent | 3dd536ffd7e8f82e4587964545b272acbd61d68e (diff) | |
parent | 14691c5e786e8c2c5734f687e4c96217340771be (diff) | |
download | android_art-5c9d8f0d2948c2b4fe4258f96e3598ad5b8fa23b.tar.gz android_art-5c9d8f0d2948c2b4fe4258f96e3598ad5b8fa23b.tar.bz2 android_art-5c9d8f0d2948c2b4fe4258f96e3598ad5b8fa23b.zip |
Merge "Compute the right catch location for the debugger."
Diffstat (limited to 'runtime/entrypoints/quick')
-rw-r--r-- | runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc | 2 | ||||
-rw-r--r-- | runtime/entrypoints/quick/quick_throw_entrypoints.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc b/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc index 14ab320b97..d88d262306 100644 --- a/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc +++ b/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc @@ -29,7 +29,7 @@ namespace art { extern "C" void artDeoptimize(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { ScopedQuickEntrypointChecks sqec(self); - self->SetException(ThrowLocation(), Thread::GetDeoptimizationException()); + self->SetException(Thread::GetDeoptimizationException()); self->QuickDeliverException(); } diff --git a/runtime/entrypoints/quick/quick_throw_entrypoints.cc b/runtime/entrypoints/quick/quick_throw_entrypoints.cc index 25df40b6c0..127f9e04a1 100644 --- a/runtime/entrypoints/quick/quick_throw_entrypoints.cc +++ b/runtime/entrypoints/quick/quick_throw_entrypoints.cc @@ -41,12 +41,12 @@ extern "C" void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread * exception_ in thread and delivering the exception. */ ScopedQuickEntrypointChecks sqec(self); - ThrowLocation throw_location = self->GetCurrentLocationForThrow(); if (exception == nullptr) { + ThrowLocation throw_location = self->GetCurrentLocationForThrow(); self->ThrowNewException(throw_location, "Ljava/lang/NullPointerException;", "throw with null exception"); } else { - self->SetException(throw_location, exception); + self->SetException(exception); } self->QuickDeliverException(); } |