Lines Matching refs:copy

6  * You may obtain a copy of the License at
394 LOG(FATAL) << "Fat locked object " << object << " found during object copy";
398 LOG(FATAL) << "Thin locked object " << object << " found during object copy";
1029 // of dex caches first and then lock it again to copy the dex
1421 // Transform each object's bin slot into an offset which will be used to do the final copy.
1588 void ImageWriter::CopyAndFixupImtConflictTable(ImtConflictTable* orig, ImtConflictTable* copy) {
1593 copy->SetInterfaceMethod(i, target_ptr_size_, NativeLocationInImage(interface_method));
1594 copy->SetImplementationMethod(i,
1627 // For arrays, copy just the header since the elements will get copied by their corresponding
1643 // Nothing to copy here, everything is done in FixupDexCache().
1677 // Note that we require that ReadFromMemory does not make an internal copy of the elements so that
1791 FixupVisitor(ImageWriter* image_writer, Object* copy) : image_writer_(image_writer), copy_(copy) {
1826 FixupClassVisitor(ImageWriter* image_writer, Object* copy) : FixupVisitor(image_writer, copy) {
1890 void ImageWriter::FixupClass(mirror::Class* orig, mirror::Class* copy) {
1891 orig->FixupNativePointers(copy, target_ptr_size_, NativeLocationVisitor(this));
1892 FixupClassVisitor visitor(this, copy);
1896 copy->SetClinitThreadId(static_cast<pid_t>(0));
1899 void ImageWriter::FixupObject(Object* orig, Object* copy) {
1901 DCHECK(copy != nullptr);
1905 // Note the address 'copy' isn't the same as the image address of 'orig'.
1906 copy->SetReadBarrierPointer(GetImageAddress(orig));
1907 DCHECK_EQ(copy->GetReadBarrierPointer(), GetImageAddress(orig));
1916 FixupPointerArray(copy, down_cast<mirror::PointerArray*>(orig), klass, it->second);
1922 FixupClass(orig->AsClass<kVerifyNone>(), down_cast<mirror::Class*>(copy));
1926 auto* dest = down_cast<mirror::AbstractMethod*>(copy);
1937 FixupDexCache(down_cast<mirror::DexCache*>(orig), down_cast<mirror::DexCache*>(copy));
1939 mirror::ClassLoader* copy_loader = down_cast<mirror::ClassLoader*>(copy);
1949 FixupVisitor visitor(this, copy);
2000 ArtMethod* copy = NativeLocationInImage(orig);
2001 mirror::DexCache::SetElementPtrSize(copy_methods, i, copy, target_ptr_size_);
2012 ArtField* copy = NativeLocationInImage(orig);
2013 mirror::DexCache::SetElementPtrSize(copy_fields, i, copy, target_ptr_size_);
2108 ArtMethod* copy,
2110 memcpy(copy, orig, ArtMethod::Size(target_ptr_size_));
2112 copy->SetDeclaringClass(GetImageAddress(orig->GetDeclaringClassUnchecked()));
2114 copy->SetDexCacheResolvedMethods(NativeLocationInImage(orig_resolved_methods), target_ptr_size_);
2116 copy->SetDexCacheResolvedTypes(NativeLocationInImage(orig_resolved_types), target_ptr_size_);
2127 copy->SetEntryPointFromQuickCompiledCodePtrSize(
2129 copy->SetImtConflictTable(NativeLocationInImage(orig_table), target_ptr_size_);
2131 copy->SetEntryPointFromQuickCompiledCodePtrSize(
2143 CHECK(copy->IsRuntimeMethod());
2150 copy->SetEntryPointFromQuickCompiledCodePtrSize(
2155 copy->SetEntryPointFromQuickCompiledCodePtrSize(quick_code, target_ptr_size_);
2161 copy->SetEntryPointFromJniPtrSize(