summaryrefslogtreecommitdiffstats
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-03-09 10:11:03 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-09 10:11:03 +0000
commit5c9d8f0d2948c2b4fe4258f96e3598ad5b8fa23b (patch)
tree7510031e119cf981cdb6aafc5e5c2299aa06590d /compiler/driver/compiler_driver.cc
parent3dd536ffd7e8f82e4587964545b272acbd61d68e (diff)
parent14691c5e786e8c2c5734f687e4c96217340771be (diff)
downloadandroid_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 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 6d2ef158e2..d1291fa719 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -1621,7 +1621,7 @@ static bool SkipClass(jobject class_loader, const DexFile& dex_file, mirror::Cla
static void CheckAndClearResolveException(Thread* self)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
CHECK(self->IsExceptionPending());
- mirror::Throwable* exception = self->GetException(nullptr);
+ mirror::Throwable* exception = self->GetException();
std::string temp;
const char* descriptor = exception->GetClass()->GetDescriptor(&temp);
const char* expected_exceptions[] = {
@@ -1766,7 +1766,7 @@ static void ResolveType(const ParallelCompilationManager* manager, size_t type_i
if (klass == nullptr) {
CHECK(soa.Self()->IsExceptionPending());
- mirror::Throwable* exception = soa.Self()->GetException(nullptr);
+ mirror::Throwable* exception = soa.Self()->GetException();
VLOG(compiler) << "Exception during type resolution: " << exception->Dump();
if (exception->GetClass()->DescriptorEquals("Ljava/lang/OutOfMemoryError;")) {
// There's little point continuing compilation if the heap is exhausted.
@@ -1983,7 +1983,7 @@ static void InitializeClass(const ParallelCompilationManager* manager, size_t cl
if (!success) {
CHECK(soa.Self()->IsExceptionPending());
- mirror::Throwable* exception = soa.Self()->GetException(nullptr);
+ mirror::Throwable* exception = soa.Self()->GetException();
VLOG(compiler) << "Initialization of " << descriptor << " aborted because of "
<< exception->Dump();
std::ostream* file_log = manager->GetCompiler()->
@@ -2248,7 +2248,7 @@ void CompilerDriver::CompileMethod(Thread* self, const DexFile::CodeItem* code_i
if (self->IsExceptionPending()) {
ScopedObjectAccess soa(self);
LOG(FATAL) << "Unexpected exception compiling: " << PrettyMethod(method_idx, dex_file) << "\n"
- << self->GetException(nullptr)->Dump();
+ << self->GetException()->Dump();
}
}