From bd9cf9f6bbf285ec7a5b74ce655a9e68e0f6e434 Mon Sep 17 00:00:00 2001 From: Sebastien Hertz Date: Tue, 3 Mar 2015 12:16:13 +0100 Subject: Follow-up 128393 Avoids false warning when initializing the exception's class by marking the transaction aborted after throwing the InternalError exception. Also uses VLOG(compiler) to print the warning since it's only useful when investigating ahead-of-time class initialization. Bug: 19202032 Change-Id: I3c53639cbb888086ad345d668d1e5b73c5aaf861 --- compiler/driver/compiler_driver.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 15b3d08a37..8abd7e0507 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1962,8 +1962,7 @@ static void InitializeClass(const ParallelCompilationManager* manager, size_t cl if (!success) { CHECK(soa.Self()->IsExceptionPending()); - ThrowLocation throw_location; - mirror::Throwable* exception = soa.Self()->GetException(&throw_location); + mirror::Throwable* exception = soa.Self()->GetException(nullptr); VLOG(compiler) << "Initialization of " << descriptor << " aborted because of " << exception->Dump(); std::ostream* file_log = manager->GetCompiler()-> -- cgit v1.2.3