diff options
Diffstat (limited to 'compiler/elf_patcher.cc')
-rw-r--r-- | compiler/elf_patcher.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/elf_patcher.cc b/compiler/elf_patcher.cc index 92eb4d8..0646b75 100644 --- a/compiler/elf_patcher.cc +++ b/compiler/elf_patcher.cc @@ -188,9 +188,8 @@ bool ElfPatcher::PatchElf() { compiler_driver_->GetMethodsToPatch().size() + compiler_driver_->GetClassesToPatch().size()); } - Thread* self = Thread::Current(); ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); - const char* old_cause = self->StartAssertNoThreadSuspension("ElfPatcher"); + ScopedAssertNoThreadSuspension ants(Thread::Current(), "ElfPatcher"); typedef std::vector<const CompilerDriver::CallPatchInformation*> CallPatches; const CallPatches& code_to_patch = compiler_driver_->GetCodeToPatch(); @@ -259,8 +258,6 @@ bool ElfPatcher::PatchElf() { SetPatchLocation(patch, PointerToLowMemUInt32(get_image_address_(cb_data_, target))); } - self->EndAssertNoThreadSuspension(old_cause); - if (write_patches_) { return WriteOutPatchData(); } |