Lines Matching defs:oat

42 #include "oat.h"
181 if (kIsTargetBuild && (kIsDebugBuild || VLOG_IS_ON(oat))) {
221 /*inout*/const uint8_t** oat,
223 DCHECK(oat != nullptr);
225 DCHECK_LE(*oat, oat_file.End());
226 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) {
231 *value = *reinterpret_cast<const unaligned_type*>(*oat);
232 *oat += sizeof(T);
239 *error_msg = StringPrintf("Invalid oat header for '%s': %s",
244 const uint8_t* oat = Begin();
245 oat += sizeof(OatHeader);
246 if (oat > End()) {
247 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str());
251 oat += GetOatHeader().GetKeyValueStoreSize();
252 if (oat > End()) {
253 *error_msg = StringPrintf("In oat file '%s' found truncated variable-size data: "
269 if (UNLIKELY(!ReadOatDexFileData(*this, &oat, &dex_file_location_size))) {
270 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu truncated after dex file "
277 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu with empty location name",
282 if (UNLIKELY(static_cast<size_t>(End() - oat) < dex_file_location_size)) {
283 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu with truncated dex file "
289 const char* dex_file_location_data = reinterpret_cast<const char*>(oat);
290 oat += dex_file_location_size;
297 if (UNLIKELY(!ReadOatDexFileData(*this, &oat, &dex_file_checksum))) {
298 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated after "
307 if (UNLIKELY(!ReadOatDexFileData(*this, &oat, &dex_file_offset))) {
308 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated "
316 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with zero dex "
324 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
334 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
347 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with invalid "
356 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with invalid "
366 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
378 if (UNLIKELY(!ReadOatDexFileData(*this, &oat, &class_offsets_offset))) {
379 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated "
388 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with truncated "
399 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with unaligned "
411 if (UNLIKELY(!ReadOatDexFileData(*this, &oat, &lookup_table_offset))) {
412 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated "
426 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with truncated "
442 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with "
481 *error_msg = StringPrintf("In oat file '%s' found unexpected bss size bigger by %zu bytes.",
652 // (open oat files multiple
739 VLOG(oat) << "Need a second run in PreSetup, didn't find with shared_objects_before="
805 // Backing memory map for oat file during cross compilation.
872 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
952 ScopedTrace trace("Open oat file " + location);
990 // Another independent reason is the absolute placement of boot.oat. dlopen on the host usually
1087 // directly mentioned in the oat file and doesn't require locking.
1094 // oat file. The correct lookup is via the canonical location but first see in