/art/compiler/ |
D | oat_writer.h | 75 size_t GetSize() const { in GetSize() 84 size_t InitOatHeader(); 85 size_t InitOatDexFiles(size_t offset); 86 size_t InitDexFiles(size_t offset); 87 size_t InitOatClasses(size_t offset); 88 size_t InitOatCode(size_t offset) 90 size_t InitOatCodeDexFiles(size_t offset) 92 size_t InitOatCodeDexFile(size_t offset, 93 size_t& oat_class_index, 96 size_t InitOatCodeClassDef(size_t offset, [all …]
|
D | oat_writer.cc | 75 size_t offset = InitOatHeader(); in OatWriter() 93 size_t OatWriter::InitOatHeader() { in InitOatHeader() 100 size_t offset = sizeof(*oat_header_); in InitOatHeader() 105 size_t OatWriter::InitOatDexFiles(size_t offset) { in InitOatDexFiles() 107 for (size_t i = 0; i != dex_files_->size(); ++i) { in InitOatDexFiles() 117 size_t OatWriter::InitDexFiles(size_t offset) { in InitDexFiles() 119 for (size_t i = 0; i != dex_files_->size(); ++i) { in InitDexFiles() 121 size_t original_offset = offset; in InitDexFiles() 134 size_t OatWriter::InitOatClasses(size_t offset) { in InitOatClasses() 137 for (size_t i = 0; i != dex_files_->size(); ++i) { in InitOatClasses() [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space.h | 35 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 49 static DlMallocSpace* Create(const std::string& name, size_t initial_size, size_t growth_limit, 50 size_t capacity, byte* requested_begin); 53 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, 54 size_t* bytes_allocated) LOCKS_EXCLUDED(lock_); 57 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated); 60 virtual size_t AllocationSize(const mirror::Object* obj); 61 virtual size_t Free(Thread* self, mirror::Object* ptr); 62 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs); 64 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated); [all …]
|
D | dlmalloc_space.cc | 46 const size_t kValgrindRedZoneBytes = 8; 51 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated) { in AllocWithGrowth() 65 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated) { in Alloc() 79 virtual size_t AllocationSize(const mirror::Object* obj) { in AllocationSize() 80 size_t result = DlMallocSpace::AllocationSize(reinterpret_cast<const mirror::Object*>( in AllocationSize() 85 virtual size_t Free(Thread* self, mirror::Object* ptr) { in Free() 89 size_t allocation_size = DlMallocSpace::AllocationSize( in Free() 92 size_t freed = DlMallocSpace::Free(self, reinterpret_cast<mirror::Object*>(obj_with_rdz)); in Free() 96 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() 97 size_t freed = 0; in FreeList() [all …]
|
D | large_object_space.h | 60 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs); 66 size_t num_bytes_allocated_; 67 size_t num_objects_allocated_; 68 size_t total_bytes_allocated_; 69 size_t total_objects_allocated_; 85 size_t AllocationSize(const mirror::Object* obj); 86 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated); 87 size_t Free(Thread* self, mirror::Object* ptr); 109 static FreeListSpace* Create(const std::string& name, byte* requested_begin, size_t capacity); 111 size_t AllocationSize(const mirror::Object* obj) EXCLUSIVE_LOCKS_REQUIRED(lock_); [all …]
|
D | space_test.cc | 33 int round, size_t growth_limit); 34 void SizeFootPrintGrowthLimitAndTrimDriver(size_t object_size); 41 static size_t test_rand(size_t* seed) { in test_rand() 89 size_t dummy = 0; in TEST_F() 106 size_t ptr3_bytes_allocated; in TEST_F() 120 size_t free3 = space->AllocationSize(ptr3); in TEST_F() 130 size_t free1 = space->AllocationSize(ptr1); in TEST_F() 161 size_t dummy = 0; in TEST_F() 178 size_t ptr3_bytes_allocated; in TEST_F() 192 size_t free3 = space->AllocationSize(ptr3); in TEST_F() [all …]
|
/art/runtime/ |
D | gc_map.h | 35 size_t NumEntries() const { in NumEntries() 40 const uint8_t* GetBitMap(size_t index) const { in GetBitMap() 41 size_t entry_offset = index * EntryWidth(); in GetBitMap() 46 uintptr_t GetNativePcOffset(size_t index) const { in GetNativePcOffset() 47 size_t entry_offset = index * EntryWidth(); in GetNativePcOffset() 49 for (size_t i = 0; i < NativeOffsetWidth(); ++i) { in GetNativePcOffset() 57 for (size_t i = 0; i < NumEntries(); ++i) { in HasEntry() 67 size_t num_entries = NumEntries(); in FindBitMap() 68 size_t index = Hash(native_pc_offset) % num_entries; in FindBitMap() 69 size_t misses = 0; in FindBitMap() [all …]
|
D | runtime.h | 80 static const size_t kDefaultHugeMethodThreshold = 10000; 81 static const size_t kDefaultLargeMethodThreshold = 600; 82 static const size_t kDefaultSmallMethodThreshold = 60; 83 static const size_t kDefaultTinyMethodThreshold = 20; 84 static const size_t kDefaultNumDexMethodsThreshold = 900; 103 size_t long_pause_log_threshold_; 104 size_t long_gc_log_threshold_; 106 size_t heap_initial_size_; 107 size_t heap_maximum_size_; 108 size_t heap_growth_limit_; [all …]
|
D | thread_pool.h | 40 static const size_t kDefaultStackSize = 1 * MB; 42 size_t GetStackSize() const { in GetStackSize() 49 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size); 55 const size_t stack_size_; 66 size_t GetThreadCount() const { in GetThreadCount() 80 explicit ThreadPool(size_t num_threads); 86 size_t GetTaskCount(Thread* self); 95 void SetMaxActiveWorkers(size_t threads); 116 volatile size_t waiting_count_ GUARDED_BY(task_queue_lock_); 124 size_t max_active_workers_ GUARDED_BY(task_queue_lock_); [all …]
|
D | mem_map.h | 41 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot); 47 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start) { in MapFile() 57 byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse); 72 size_t Size() const { in Size() 88 MemMap(const std::string& name, byte* begin, size_t size, void* base_begin, size_t base_size, 93 size_t size_; // Length of data. 96 const size_t base_size_; // Length of mapping.
|
D | utf.h | 40 size_t CountModifiedUtf8Chars(const char* utf8); 46 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count); 70 void ConvertUtf16ToModifiedUtf8(char* utf8_out, const uint16_t* utf16_in, size_t char_count); 75 int32_t ComputeUtf16Hash(const mirror::CharArray* chars, int32_t offset, size_t char_count) 77 int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count);
|
D | utf.cc | 25 size_t CountModifiedUtf8Chars(const char* utf8) { in CountModifiedUtf8Chars() 26 size_t len = 0; in CountModifiedUtf8Chars() 52 void ConvertUtf16ToModifiedUtf8(char* utf8_out, const uint16_t* utf16_in, size_t char_count) { in ConvertUtf16ToModifiedUtf8() 71 size_t char_count) { in ComputeUtf16Hash() 73 for (size_t i = 0; i < char_count; i++) { in ComputeUtf16Hash() 79 int32_t ComputeUtf16Hash(const uint16_t* chars, size_t char_count) { in ComputeUtf16Hash() 139 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count) { in CountUtf8Bytes() 140 size_t result = 0; in CountUtf8Bytes()
|
D | reference_table.cc | 32 ReferenceTable::ReferenceTable(const char* name, size_t initial_size, size_t max_size) in ReferenceTable() 62 static size_t GetElementCount(const mirror::Object* obj) { in GetElementCount() 91 size_t count1 = obj1->SizeOf(); in operator ()() 92 size_t count2 = obj2->SizeOf(); in operator ()() 108 static void DumpSummaryLine(std::ostream& os, const mirror::Object* obj, size_t element_count, in DumpSummaryLine() 130 size_t total = identical + equiv + 1; in DumpSummaryLine() 138 size_t ReferenceTable::Size() const { in Size() 154 const size_t kLast = 10; in Dump() 155 size_t count = entries.size(); in Dump() 172 size_t size = ref->SizeOf(); in Dump() [all …]
|
D | stack.h | 62 static size_t ComputeSize(uint32_t num_vregs) { in ComputeSize() 125 int32_t GetVReg(size_t i) const { in GetVReg() 131 float GetVRegFloat(size_t i) const { in GetVRegFloat() 138 int64_t GetVRegLong(size_t i) const { in GetVRegLong() 144 double GetVRegDouble(size_t i) const { in GetVRegDouble() 150 mirror::Object* GetVRegReference(size_t i) const { in GetVRegReference() 161 uint32_t* GetVRegArgs(size_t i) { in GetVRegArgs() 165 void SetVReg(size_t i, int32_t val) { in SetVReg() 171 void SetVRegFloat(size_t i, float val) { in SetVRegFloat() 177 void SetVRegLong(size_t i, int64_t val) { in SetVRegLong() [all …]
|
/art/runtime/gc/ |
D | heap.h | 106 static constexpr size_t kDefaultInitialSize = 2 * MB; 107 static constexpr size_t kDefaultMaximumSize = 32 * MB; 108 static constexpr size_t kDefaultMaxFree = 2 * MB; 109 static constexpr size_t kDefaultMinFree = kDefaultMaxFree / 4; 110 static constexpr size_t kDefaultLongPauseLogThreshold = MsToNs(5); 111 static constexpr size_t kDefaultLongGCLogThreshold = MsToNs(100); 117 static constexpr size_t kTimeAdjust = 1024; 122 explicit Heap(size_t initial_size, size_t growth_limit, size_t min_free, 123 size_t max_free, double target_utilization, size_t capacity, 125 size_t parallel_gc_threads, size_t conc_gc_threads, bool low_memory_mode, [all …]
|
/art/runtime/gc/accounting/ |
D | space_bitmap-inl.h | 32 const size_t index = OffsetToIndex(offset); in AtomicTestAndSet() 60 const size_t bit_index_start = (visit_begin - heap_begin_) / kAlignment; in VisitMarkedRange() 61 const size_t bit_index_end = (visit_end - heap_begin_ - 1) / kAlignment; in VisitMarkedRange() 63 size_t word_start = bit_index_start / kBitsPerWord; in VisitMarkedRange() 64 size_t word_end = bit_index_end / kBitsPerWord; in VisitMarkedRange() 68 size_t edge_word = bitmap_begin_[word_start]; in VisitMarkedRange() 71 size_t left_bits = bit_index_start & (kBitsPerWord - 1); in VisitMarkedRange() 80 const size_t shift = CLZ(edge_word); in VisitMarkedRange() 83 edge_word ^= static_cast<size_t>(kWordHighBitMask) >> shift; in VisitMarkedRange() 88 for (size_t i = word_start; i < word_end; i++) { in VisitMarkedRange() [all …]
|
/art/compiler/jni/quick/ |
D | calling_convention.h | 36 size_t SizeOfReturnValue() const { in SizeOfReturnValue() 37 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[0])); in SizeOfReturnValue() 74 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention() 109 size_t NumArgs() const { in NumArgs() 112 size_t NumLongOrDoubleArgs() const { in NumLongOrDoubleArgs() 115 size_t NumReferenceArgs() const { in NumReferenceArgs() 118 size_t ParamSize(unsigned int param) const { in ParamSize() 125 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[param])); in ParamSize() 151 size_t num_args_; 152 size_t num_ref_args_; [all …]
|
/art/runtime/verifier/ |
D | dex_gc_map.h | 41 DexPcToReferenceMap(const uint8_t* data, size_t data_length) : data_(data) { in DexPcToReferenceMap() 44 size_t data_size = data_length - 4; in DexPcToReferenceMap() 49 size_t NumEntries() const { in NumEntries() 54 uint16_t GetDexPc(size_t index) const { in GetDexPc() 55 size_t entry_offset = index * EntryWidth(); in GetDexPc() 64 const uint8_t* GetBitMap(size_t index) const { in GetBitMap() 65 size_t entry_offset = index * EntryWidth(); in GetBitMap() 73 size_t RegWidth() const { in RegWidth() 89 size_t DexPcWidth() const { in DexPcWidth() 103 size_t EntryWidth() const { in EntryWidth()
|
/art/compiler/dex/ |
D | growable_array.h | 69 static void* operator new(size_t size, ArenaAllocator* arena) { in new() 75 size_t idx_; 79 GrowableArray(ArenaAllocator* arena, size_t init_length, OatListKind kind = kGrowableArrayMisc) 90 void Resize(size_t new_length) { in Resize() 93 size_t target_length = in Resize() 118 T Get(size_t index) const { in Get() 124 void Put(size_t index, T elem) { in Put() 129 void Increment(size_t index) { in Increment() 136 for (size_t i = 0; i < num_used_ - 1; i++) { in Delete() 149 size_t GetNumAllocated() const { return num_allocated_; } in GetNumAllocated() [all …]
|
D | arena_allocator.h | 35 static constexpr size_t kDefaultSize = 128 * KB; 36 explicit Arena(size_t size = kDefaultSize); 47 size_t Size() const { in Size() 51 size_t RemainingSpace() const { in RemainingSpace() 56 size_t bytes_allocated_; 58 size_t size_; 70 Arena* AllocArena(size_t size); 105 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() 123 void ObtainNewArenaForAllocation(size_t allocation_size); 124 size_t BytesAllocated() const; [all …]
|
/art/runtime/base/ |
D | histogram.h | 34 const size_t kInitialBucketCount; 43 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100); 59 Value GetRange(size_t bucket_idx) const; 60 size_t GetBucketCount() const; 84 size_t FindBucket(Value val) const; 91 const size_t max_buckets_; 93 size_t sample_size_;
|
/art/compiler/jni/quick/arm/ |
D | calling_convention_arm.cc | 92 size_t num_spills = NumArgs() + NumLongOrDoubleArgs(); in EntrySpills() 112 size_t padding = 0; in ArmJniCallingConvention() 113 for (size_t cur_arg = IsStatic() ? 0 : 1, cur_reg = 2; cur_arg < NumArgs(); cur_arg++) { in ArmJniCallingConvention() 144 size_t ArmJniCallingConvention::FrameSize() { in FrameSize() 146 size_t frame_data_size = (3 + CalleeSaveRegisters().size()) * kPointerSize; in FrameSize() 148 size_t sirt_size = (ReferenceCount() + 2) * kPointerSize; in FrameSize() 153 size_t ArmJniCallingConvention::OutArgSize() { in OutArgSize() 162 size_t arg_pos = itr_args_ - NumberOfExtraArgumentsForJni(); in Next() 198 size_t offset = displacement_.Int32Value() - OutArgSize() + ((itr_slots_ - 4) * kPointerSize); in CurrentParamStackOffset() 203 size_t ArmJniCallingConvention::NumberOfOutgoingStackArgs() { in NumberOfOutgoingStackArgs() [all …]
|
/art/compiler/jni/quick/mips/ |
D | calling_convention_mips.cc | 92 size_t num_spills = NumArgs() + NumLongOrDoubleArgs(); in EntrySpills() 112 size_t padding = 0; in MipsJniCallingConvention() 113 for (size_t cur_arg = IsStatic() ? 0 : 1, cur_reg = 2; cur_arg < NumArgs(); cur_arg++) { in MipsJniCallingConvention() 148 size_t MipsJniCallingConvention::FrameSize() { in FrameSize() 150 size_t frame_data_size = (3 + CalleeSaveRegisters().size()) * kPointerSize; in FrameSize() 152 size_t sirt_size = (ReferenceCount() + 2) * kPointerSize; in FrameSize() 157 size_t MipsJniCallingConvention::OutArgSize() { in OutArgSize() 166 size_t arg_pos = itr_args_ - NumberOfExtraArgumentsForJni(); in Next() 202 size_t offset = displacement_.Int32Value() - OutArgSize() + (itr_slots_ * kPointerSize); in CurrentParamStackOffset() 207 size_t MipsJniCallingConvention::NumberOfOutgoingStackArgs() { in NumberOfOutgoingStackArgs() [all …]
|
/art/runtime/arch/mips/ |
D | context_mips.cc | 29 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in Reset() 32 for (size_t i = 0; i < kNumberOfFRegisters; i++) { in Reset() 46 size_t spill_count = __builtin_popcount(core_spills); in FillCalleeSaves() 47 size_t fp_spill_count = __builtin_popcount(fp_core_spills); in FillCalleeSaves() 48 size_t frame_size = method->GetFrameSizeInBytes(); in FillCalleeSaves() 52 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in FillCalleeSaves() 62 for (size_t i = 0; i < kNumberOfFRegisters; i++) { in FillCalleeSaves() 92 for (size_t i = 0; i < kNumberOfCoreRegisters; ++i) { in DoLongJump() 95 for (size_t i = 0; i < kNumberOfFRegisters; ++i) { in DoLongJump()
|
/art/runtime/arch/arm/ |
D | context_arm.cc | 30 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in Reset() 33 for (size_t i = 0; i < kNumberOfSRegisters; i++) { in Reset() 47 size_t spill_count = __builtin_popcount(core_spills); in FillCalleeSaves() 48 size_t fp_spill_count = __builtin_popcount(fp_core_spills); in FillCalleeSaves() 49 size_t frame_size = method->GetFrameSizeInBytes(); in FillCalleeSaves() 53 for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { in FillCalleeSaves() 63 for (size_t i = 0; i < kNumberOfSRegisters; i++) { in FillCalleeSaves() 92 for (size_t i = 0; i < kNumberOfCoreRegisters; ++i) { in DoLongJump() 95 for (size_t i = 0; i < kNumberOfSRegisters; ++i) { in DoLongJump()
|