/art/runtime/base/ |
H A D | stringprintf_test.cc | 24 size_t size = 0x00107e59; local 25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); 26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str());
|
H A D | arena_object.h | 30 // Allocate a new ArenaObject of 'size' bytes in the Arena. 31 void* operator new(size_t size, ArenaAllocator* allocator) { argument 32 return allocator->Alloc(size, kAllocKind); 35 static void* operator new(size_t size, ScopedArenaAllocator* arena) { argument 36 return arena->Alloc(size, kAllocKind); 54 // Allocate a new ArenaObject of 'size' bytes in the Arena. 55 void* operator new(size_t size, ArenaAllocator* allocator) { argument 56 return allocator->Alloc(size, kAllocKind); 59 static void* operator new(size_t size, ScopedArenaAllocator* arena) { argument 60 return arena->Alloc(size, kAllocKin [all...] |
H A D | bit_field.h | 34 static constexpr size_t size = kSize; member in class:art::BitField 37 static_assert(size != 0u, "Invalid size."); 38 static_assert(size <= sizeof(uintptr_t) * kBitsPerByte, "Invalid size."); 39 static_assert(size + position <= sizeof(uintptr_t) * kBitsPerByte, "Invalid position + size."); 43 return (static_cast<uintptr_t>(value) & ~((kUintPtrTOne << size) - 1)) == 0; 48 return (kUintPtrTOne << size) - 1; 54 return ((kUintPtrTOne << size) [all...] |
/art/runtime/ |
H A D | memory_region.cc | 29 CHECK_GT(from.size(), 0U); 30 CHECK_GE(this->size(), from.size()); 31 CHECK_LE(offset, this->size() - from.size()); 33 from.pointer(), from.size());
|
/art/test/413-regalloc-regression/src/ |
H A D | Main.java | 19 private int size; field in class:Main 23 size = 0; 27 for (int i = index; i < size - 1; i++) { 30 data[--size] = null; 35 main.size++; 37 if (main.size != 0) { 38 throw new Error("Unexpected size");
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | RawDexFile.java | 86 // - but only update the items that we expect to have changed size. 91 if (mapItem.size != stringIds.size()) { 92 Log.debug("Updating StringIDs List size: " + stringIds.size()); 93 mapItem.size = stringIds.size(); 94 header.stringIdsSize = stringIds.size(); 98 if (mapItem.size != stringDatas.size()) { [all...] |
H A D | EncodedAnnotation.java | 23 public int size; field in class:EncodedAnnotation 29 size = file.readUleb128(); 30 if (size != 0) { 31 elements = new AnnotationElement[size]; 32 for (int i = 0; i < size; i++) { 41 file.writeUleb128(size); 42 if (size != 0) { 54 if (size != 0) {
|
H A D | EncodedArray.java | 22 public int size; field in class:EncodedArray 27 size = file.readUleb128(); 28 if (size != 0) { 29 values = new EncodedValue[size]; 30 for (int i = 0; i < size; i++) { 38 file.writeUleb128(size); 39 if (size != 0) { 48 if (size != 0) {
|
H A D | DebugInfoItem.java | 21 // Right now we are not parsing debug_info_item, just take the raw size 23 private int size; field in class:DebugInfoItem 26 public DebugInfoItem(int size) { argument 27 this.size = size; 33 data = new byte[size];
|
H A D | EncodedCatchHandlerList.java | 22 public int size; field in class:EncodedCatchHandlerList 27 size = file.readUleb128(); 28 list = new EncodedCatchHandler[size]; 29 for (int i = 0; i < size; i++) { 36 file.writeUleb128(size);
|
H A D | StringDataItem.java | 25 private int size; field in class:StringDataItem 33 size = file.readUleb128(); 34 if (size != 0) { 35 dataAsBytes = file.readDexUtf(size); 37 if (size != data.length()) { 51 file.writeUleb128(size); 52 if (size > 0) { 69 public void setSize(int size) { argument 70 this.size = size; [all...] |
H A D | EncodedCatchHandler.java | 22 public int size; field in class:EncodedCatchHandler 28 size = file.readSleb128(); 29 int absoluteSize = Math.abs(size); 32 for (int i = 0; i < Math.abs(size); i++) { 36 if (size <= 0) { 43 file.writeSleb128(size); 49 if (size <= 0) {
|
H A D | EncodedValue.java | 43 int size = 0; 47 size = 1; 51 size = 0; // So we don't read into value. 55 size = 0; // So we don't read into value. 60 size = 0; 63 // All others encode value_arg as (size - 1), so... 64 size = valueArg + 1; 68 if (size != 0) { 69 value = new byte[size]; 70 for (int i = 0; i < size; [all...] |
H A D | TypeList.java | 22 public int size; field in class:TypeList 29 size = file.readUInt(); 30 list = new TypeItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size); 58 int checkSize = Math.min(size, other.size); 66 if (size == other.size) {
|
H A D | AnnotationSetItem.java | 22 public int size; field in class:AnnotationSetItem 29 size = file.readUInt(); 30 entries = new AnnotationOffItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size);
|
H A D | AnnotationSetRefList.java | 22 public int size; field in class:AnnotationSetRefList 29 size = file.readUInt(); 30 list = new AnnotationSetRefItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size);
|
H A D | MapList.java | 29 public int size; field in class:MapList 44 size = file.readUInt(); 47 mapItems = new ArrayList<MapItem>(size); 48 for (int i = 0; i < size; i++) { 69 for (int i = 0; i < mapItem.size; i++) { 76 for (int i = 0; i < mapItem.size; i++) { 83 for (int i = 0; i < mapItem.size; i++) { 90 for (int i = 0; i < mapItem.size; i++) { 97 for (int i = 0; i < mapItem.size; i++) { 104 for (int i = 0; i < mapItem.size; [all...] |
/art/compiler/utils/ |
H A D | stack_checks.h | 37 static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa ATTRIBUTE_UNUSED) { argument 38 return size >= kLargeFrameSize;
|
H A D | swap_space.cc | 30 // The chunk size by which the swap file is increased and mapped. 44 << " size=" << std::dec << entry.second->size; 55 DCHECK_NE(chunk.size, 0u); 58 free_by_size_.emplace(chunk.size, insert_result.first); 72 // this point, so there should be only full size chunks in free_by_start_. 74 if (munmap(chunk.ptr, chunk.size) != 0) { 76 << static_cast<const void*>(chunk.ptr) << " size=" << chunk.size; 85 if (free_by_start.size() ! 107 Alloc(size_t size) argument 164 Free(void* ptr, size_t size) argument [all...] |
/art/test/617-clinit-oome/src/ |
H A D | Main.java | 23 int size = 256 * 1024 * 1024; 27 data[index] = new byte[size]; 30 size /= 2; 31 if (size == 0) {
|
/art/runtime/gc/allocator/ |
H A D | rosalloc-inl.h | 31 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated, argument 34 if (UNLIKELY(size > kLargeSizeThreshold)) { 35 return AllocLargeObject(self, size, bytes_allocated, usable_size, 40 m = AllocFromRun(self, size, bytes_allocated, usable_size, bytes_tl_bulk_allocated); 42 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated, usable_size, 48 for (size_t i = 0; i < size; ++i) { 59 inline bool RosAlloc::CanAllocFromThreadLocalRun(Thread* self, size_t size) { argument 60 if (UNLIKELY(!IsSizeForThreadLocal(size))) { 64 size_t idx = SizeToIndexAndBracketSize(size, &bracket_size); 78 inline void* RosAlloc::AllocFromThreadLocalRun(Thread* self, size_t size, argument 102 MaxBytesBulkAllocatedFor(size_t size) argument [all...] |
/art/tools/dexfuzz/src/dexfuzz/fuzzers/ |
H A D | FuzzerMultiple.java | 36 if (Options.inputFileList.size() > 1) { 37 int nextIndex = iterations % Options.inputFileList.size();
|
/art/compiler/debug/ |
H A D | elf_gnu_debugdata_writer.h | 47 static SRes ReadImpl(void* p, void* buf, size_t* size) { argument 49 *size = std::min(*size, ctx->src_->size() - ctx->src_pos_); 50 memcpy(buf, ctx->src_->data() + ctx->src_pos_, *size); 51 ctx->src_pos_ += *size; 54 static size_t WriteImpl(void* p, const void* buf, size_t size) { argument 57 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size); 58 return size; 103 compressed_buffer.reserve(buffer.size() / [all...] |
/art/runtime/lambda/ |
H A D | art_lambda_method.cc | 37 // Calculate the static closure size from the captured variables. 38 size_t size = sizeof(ArtLambdaMethod*); // Initial size is just this method. local 42 // Each captured variable also appends to the size. 44 size += shorty_field.GetStaticSize(); 48 closure_size_ = size; 50 // We determine whether or not the size is dynamic by checking for nested lambdas. 52 // This is conservative, since in theory an optimization could determine the size
|
/art/tools/ahat/src/ |
H A D | SubsetSelector.java | 49 mLimit = getSelectedLimit(query, id, elements.size()); 60 return mElements.subList(mLimit, mElements.size()); 66 * @param size the total number of elements to select from 69 private static int getSelectedLimit(Query query, String id, int size) { argument 72 int ivalue = Math.min(size, Integer.parseInt(value)); 77 return Math.min(kDefaultShown, size); 84 int all = mElements.size();
|