diff options
Diffstat (limited to 'patchoat/patchoat.cc')
-rw-r--r-- | patchoat/patchoat.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc index ed7623a465..f54e81f9d3 100644 --- a/patchoat/patchoat.cc +++ b/patchoat/patchoat.cc @@ -468,7 +468,7 @@ class PatchOat::FixupRootVisitor : public RootVisitor { }; void PatchOat::PatchInternedStrings(const ImageHeader* image_header) { - const auto& section = image_header->GetImageSection(ImageHeader::kSectionInternedStrings); + const auto& section = image_header->GetInternedStringsSection(); InternTable temp_table; // Note that we require that ReadFromMemory does not make an internal copy of the elements. // This also relies on visit roots not doing any verification which could fail after we update @@ -479,7 +479,7 @@ void PatchOat::PatchInternedStrings(const ImageHeader* image_header) { } void PatchOat::PatchClassTable(const ImageHeader* image_header) { - const auto& section = image_header->GetImageSection(ImageHeader::kSectionClassTable); + const auto& section = image_header->GetClassTableSection(); if (section.Size() == 0) { return; } @@ -686,8 +686,6 @@ void PatchOat::FixupMethod(ArtMethod* object, ArtMethod* copy) { // Just update the entry points if it looks like we should. // TODO: sanity check all the pointers' values copy->SetDeclaringClass(RelocatedAddressOfPointer(object->GetDeclaringClass())); - copy->SetDexCacheResolvedMethods( - RelocatedAddressOfPointer(object->GetDexCacheResolvedMethods(pointer_size)), pointer_size); copy->SetEntryPointFromQuickCompiledCodePtrSize(RelocatedAddressOfPointer( object->GetEntryPointFromQuickCompiledCodePtrSize(pointer_size)), pointer_size); // No special handling for IMT conflict table since all pointers are moved by the same offset. |