diff options
| author | 2017-07-27 16:53:50 +0000 | |
|---|---|---|
| committer | 2017-07-27 16:53:50 +0000 | |
| commit | 078a27af849f55fc903da8f291315504618f2207 (patch) | |
| tree | 239d30d658907ee40c121b0e06018ef8b71e23e5 /compiler/driver/compiler_driver.cc | |
| parent | 83e9e0efb03e2cb924b6544ca51626ff09d834d3 (diff) | |
| parent | 605fe24d07062a038c8332a4d98f47052e9cee6a (diff) | |
Merge changes If53d3ee3,I7cc0eea1
* changes:
Implemented Nested Transaction
Add strict flag in transaction
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index ed36e111ff..7e31ff0024 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -2332,7 +2332,7 @@ class InitializeClassVisitor : public CompilationVisitor { // checks in Thread::AssertThreadSuspensionIsAllowable. Runtime* const runtime = Runtime::Current(); // Run the class initializer in transaction mode. - runtime->EnterTransactionMode(klass.Get()); + runtime->EnterTransactionMode(is_app_image, klass.Get()); bool success = manager_->GetClassLinker()->EnsureInitialized(soa.Self(), klass, true, true); // TODO we detach transaction from runtime to indicate we quit the transactional @@ -2359,7 +2359,7 @@ class InitializeClassVisitor : public CompilationVisitor { *file_log << exception->Dump() << "\n"; } soa.Self()->ClearException(); - runtime->RollbackAndExitTransactionMode(); + runtime->RollbackAllTransactions(); CHECK_EQ(old_status, klass->GetStatus()) << "Previous class status not restored"; } else if (is_boot_image) { // For boot image, we want to put the updated status in the oat class since we can't |