Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 859) sorted by relevance

12345678910>>...35

/art/runtime/utils/
Ddex_cache_arrays_layout.h56 size_t Size() const { in Size()
60 size_t Alignment() const;
62 static constexpr size_t Alignment(PointerSize pointer_size);
64 size_t TypesOffset() const { in TypesOffset()
68 size_t TypeOffset(dex::TypeIndex type_idx) const;
70 size_t TypesSize(size_t num_elements) const;
72 size_t TypesAlignment() const;
74 size_t MethodsOffset() const { in MethodsOffset()
78 size_t MethodOffset(uint32_t method_idx) const;
80 size_t MethodsSize(size_t num_elements) const;
[all …]
Ddex_cache_arrays_layout-inl.h55 inline size_t DexCacheArraysLayout::Alignment() const { in Alignment()
59 inline constexpr size_t DexCacheArraysLayout::Alignment(PointerSize pointer_size) { in Alignment()
69 return 2u * static_cast<size_t>(pointer_size); in Alignment()
78 inline size_t DexCacheArraysLayout::TypeOffset(dex::TypeIndex type_idx) const { in TypeOffset()
83 inline size_t DexCacheArraysLayout::TypesSize(size_t num_elements) const { in TypesSize()
84 size_t cache_size = mirror::DexCache::kDexCacheTypeCacheSize; in TypesSize()
91 inline size_t DexCacheArraysLayout::TypesAlignment() const { in TypesAlignment()
95 inline size_t DexCacheArraysLayout::MethodOffset(uint32_t method_idx) const { in MethodOffset()
99 inline size_t DexCacheArraysLayout::MethodsSize(size_t num_elements) const { in MethodsSize()
100 size_t cache_size = mirror::DexCache::kDexCacheMethodCacheSize; in MethodsSize()
[all …]
/art/runtime/gc/space/
Ddlmalloc_space.h39 size_t starting_size,
40 size_t initial_size,
41 size_t growth_limit,
42 size_t capacity,
50 size_t initial_size,
51 size_t growth_limit,
52 size_t capacity,
57 size_t num_bytes,
58 size_t* bytes_allocated,
59 size_t* usable_size,
[all …]
Drosalloc_space.h42 size_t initial_size,
43 size_t growth_limit,
44 size_t capacity,
49 size_t starting_size,
50 size_t initial_size,
51 size_t growth_limit,
52 size_t capacity,
56 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
57 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
59 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc()
[all …]
Dmalloc_space.h41 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
48 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes,
49 size_t* bytes_allocated, size_t* usable_size,
50 size_t* bytes_tl_bulk_allocated) = 0;
52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override = 0;
56 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override = 0;
57 size_t Free(Thread* self, mirror::Object* ptr) override
59 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
65 virtual size_t MaxBytesBulkAllocatedFor(size_t num_bytes) = 0;
[all …]
Dmemory_tool_malloc_space.h29 size_t kMemoryToolRedZoneBytes,
34 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
35 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
38 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override;
39 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
40 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
43 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override;
45 size_t Free(Thread* self, mirror::Object* ptr) override
48 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
[all …]
Dmemory_tool_malloc_space-inl.h32 template <size_t kMemoryToolRedZoneBytes, bool kUseObjSizeForUsable>
34 size_t num_bytes, in AdjustForMemoryTool()
35 size_t bytes_allocated, in AdjustForMemoryTool()
36 size_t usable_size, in AdjustForMemoryTool()
37 size_t bytes_tl_bulk_allocated, in AdjustForMemoryTool()
38 size_t* bytes_allocated_out, in AdjustForMemoryTool()
39 size_t* usable_size_out, in AdjustForMemoryTool()
40 size_t* bytes_tl_bulk_allocated_out) { in AdjustForMemoryTool()
78 inline size_t GetObjSizeNoThreadSafety(mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS { in GetObjSizeNoThreadSafety()
85 size_t kMemoryToolRedZoneBytes,
[all …]
Dregion_space.h49 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
64 static MemMap CreateMemMap(const std::string& name, size_t capacity, uint8_t* requested_begin);
69 size_t num_bytes,
70 /* out */ size_t* bytes_allocated,
71 /* out */ size_t* usable_size,
72 /* out */ size_t* bytes_tl_bulk_allocated)
76 size_t num_bytes,
77 /* out */ size_t* bytes_allocated,
78 /* out */ size_t* usable_size,
79 /* out */ size_t* bytes_tl_bulk_allocated)
[all …]
Dbump_pointer_space.h42 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
51 static BumpPointerSpace* Create(const std::string& name, size_t capacity);
55 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
56 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override;
58 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
59 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
62 mirror::Object* AllocNonvirtual(size_t num_bytes);
63 mirror::Object* AllocNonvirtualWithoutAccounting(size_t num_bytes);
66 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override in AllocationSize()
72 size_t Free(Thread*, mirror::Object*) override { in Free()
[all …]
Ddlmalloc_space.cc42 size_t initial_size, in DlMallocSpace()
48 size_t growth_limit, in DlMallocSpace()
50 size_t starting_size) in DlMallocSpace()
66 size_t starting_size, in CreateFromMemMap()
67 size_t initial_size, in CreateFromMemMap()
68 size_t growth_limit, in CreateFromMemMap()
69 size_t capacity, in CreateFromMemMap()
112 size_t initial_size, in Create()
113 size_t growth_limit, in Create()
114 size_t capacity, in Create()
[all …]
Dlarge_object_space_test.cc30 static constexpr size_t kNumThreads = 10;
31 static constexpr size_t kNumIterations = 1000;
37 size_t rand_seed = 0; in LargeObjectTest()
39 for (size_t i = 0; i < 2; ++i) { in LargeObjectTest()
41 const size_t capacity = 128 * MB; in LargeObjectTest()
54 static const size_t num_allocations = 64; in LargeObjectTest()
55 static const size_t max_allocation_size = 0x100000; in LargeObjectTest()
56 std::vector<std::pair<mirror::Object*, size_t>> requests; in LargeObjectTest()
58 for (size_t phase = 0; phase < 2; ++phase) { in LargeObjectTest()
60 size_t request_size = test_rand(&rand_seed) % max_allocation_size; in LargeObjectTest()
[all …]
/art/libartbase/base/
Dlength_prefixed_array.h33 explicit LengthPrefixedArray(size_t length) in LengthPrefixedArray()
36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const {
46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
50 StrideIterator<const T> begin(size_t element_size = sizeof(T),
51 size_t alignment = alignof(T)) const {
55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
59 StrideIterator<const T> end(size_t element_size = sizeof(T),
60 size_t alignment = alignof(T)) const {
64 static size_t OffsetOfElement(size_t index,
[all …]
Dbit_memory_region.h40 ALWAYS_INLINE BitMemoryRegion(uint8_t* data, ssize_t bit_start, size_t bit_size) { in BitMemoryRegion()
49 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion()
61 size_t size_in_bits() const { in size_in_bits()
65 void Resize(size_t bit_size) { in Resize()
69 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_length) const { in Subregion()
78 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset) const { in Subregion()
88 ALWAYS_INLINE bool LoadBit(size_t bit_offset) const { in LoadBit()
90 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in LoadBit()
91 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit()
95 ALWAYS_INLINE void StoreBit(size_t bit_offset, bool value) { in StoreBit()
[all …]
/art/dex2oat/linker/
Doat_writer.h201 bool CheckOatSize(OutputStream* out, size_t file_offset, size_t relative_offset);
216 size_t GetCodeSize() const { in GetCodeSize()
220 size_t GetOatSize() const { in GetOatSize()
224 size_t GetDataBimgRelRoSize() const { in GetDataBimgRelRoSize()
228 size_t GetBssSize() const { in GetBssSize()
232 size_t GetBssMethodsOffset() const { in GetBssMethodsOffset()
236 size_t GetBssRootsOffset() const { in GetBssRootsOffset()
240 size_t GetVdexSize() const { in GetVdexSize()
244 size_t GetOatDataOffset() const { in GetOatDataOffset()
321 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store);
[all …]
Dimage_writer.h55 template <size_t kAlignment> class SpaceBitmap;
85 const std::unordered_map<const DexFile*, size_t>& dex_file_oat_index_map,
124 size_t oat_index = GetOatIndex(object); in GetImageAddress()
134 size_t GetOatFileOffset(size_t oat_index) const { in GetOatFileOffset()
138 const uint8_t* GetOatFileBegin(size_t oat_index) const { in GetOatFileBegin()
148 size_t component_count)
151 uintptr_t GetOatDataBegin(size_t oat_index) { in GetOatDataBegin()
160 size_t GetOatIndexForDexFile(const DexFile* dex_file) const;
163 size_t GetOatIndexForClass(ObjPtr<mirror::Class> klass) const
168 void UpdateOatFileLayout(size_t oat_index,
[all …]
/art/runtime/gc/allocator/
Drosalloc.h54 size_t ByteSize(RosAlloc* rosalloc) const REQUIRES(rosalloc->lock_) { in ByteSize()
56 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in ByteSize()
57 size_t byte_size = rosalloc->free_page_run_size_map_[pm_idx]; in ByteSize()
58 DCHECK_GE(byte_size, static_cast<size_t>(0)); in ByteSize()
62 void SetByteSize(RosAlloc* rosalloc, size_t byte_size) in SetByteSize()
64 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in SetByteSize()
66 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in SetByteSize()
104 size_t byte_size = ByteSize(rosalloc); in ReleasePages()
105 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in ReleasePages()
125 Slot* Left(size_t bracket_size) { in Left()
[all …]
/art/runtime/arch/x86_64/
Djni_frame_x86_64.h30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k64);
33 static constexpr size_t kNativeStackAlignment = 16;
38 constexpr size_t kMmxSpillSize = 8u;
39 constexpr size_t kAlwaysSpilledMmxRegisters = 4;
43 constexpr size_t kMaxFloatOrDoubleRegisterArguments = 8u;
47 constexpr size_t kMaxIntLikeRegisterArguments = 6u;
51 inline size_t GetCriticalNativeOutArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeOutArgsSize()
54 size_t num_fp_args = 0u; in GetCriticalNativeOutArgsSize()
55 for (size_t i = 1; i != shorty_len; ++i) { in GetCriticalNativeOutArgsSize()
60 size_t num_non_fp_args = shorty_len - 1u - num_fp_args; in GetCriticalNativeOutArgsSize()
[all …]
/art/runtime/arch/arm64/
Djni_frame_arm64.h30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k64);
34 static constexpr size_t kAapcs64StackAlignment = 16u;
39 constexpr size_t kMaxFloatOrDoubleRegisterArguments = 8u;
42 constexpr size_t kMaxIntLikeRegisterArguments = 8u;
46 inline size_t GetCriticalNativeOutArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeOutArgsSize()
49 size_t num_fp_args = 0u; in GetCriticalNativeOutArgsSize()
50 for (size_t i = 1; i != shorty_len; ++i) { in GetCriticalNativeOutArgsSize()
55 size_t num_non_fp_args = shorty_len - 1u - num_fp_args; in GetCriticalNativeOutArgsSize()
58 size_t num_stack_fp_args = in GetCriticalNativeOutArgsSize()
61 size_t num_stack_non_fp_args = in GetCriticalNativeOutArgsSize()
[all …]
/art/runtime/arch/
Darch_test.cc46 static constexpr size_t kFrameSizeSaveAllCalleeSaves = FRAME_SIZE_SAVE_ALL_CALLEE_SAVES;
48 static constexpr size_t kFrameSizeSaveRefsOnly = FRAME_SIZE_SAVE_REFS_ONLY;
50 static constexpr size_t kFrameSizeSaveRefsAndArgs = FRAME_SIZE_SAVE_REFS_AND_ARGS;
52 static constexpr size_t kFrameSizeSaveEverythingForClinit = FRAME_SIZE_SAVE_EVERYTHING_FOR_CLINIT;
54 static constexpr size_t kFrameSizeSaveEverythingForSuspendCheck =
57 static constexpr size_t kFrameSizeSaveEverything = FRAME_SIZE_SAVE_EVERYTHING;
72 static constexpr size_t kFrameSizeSaveAllCalleeSaves = FRAME_SIZE_SAVE_ALL_CALLEE_SAVES;
74 static constexpr size_t kFrameSizeSaveRefsOnly = FRAME_SIZE_SAVE_REFS_ONLY;
76 static constexpr size_t kFrameSizeSaveRefsAndArgs = FRAME_SIZE_SAVE_REFS_AND_ARGS;
78 static constexpr size_t kFrameSizeSaveEverythingForClinit = FRAME_SIZE_SAVE_EVERYTHING_FOR_CLINIT;
[all …]
/art/compiler/optimizing/
Dregister_allocator_linear_scan.h58 size_t GetNumberOfSpillSlots() const { in GetNumberOfSpillSlots()
79 void BlockRegister(Location location, size_t start, size_t end);
80 void BlockRegisters(size_t start, size_t end, bool caller_save_only = false);
97 int FindAvailableRegisterPair(size_t* next_use, size_t starting_at) const;
98 int FindAvailableRegister(size_t* next_use, LiveInterval* current) const;
103 bool TrySplitNonPairOrUnalignedPairIntervalAt(size_t position,
104 size_t first_register_use,
105 size_t* next_use);
143 ScopedArenaVector<size_t> int_spill_slots_;
144 ScopedArenaVector<size_t> long_spill_slots_;
[all …]
/art/tools/dexanalyze/
Ddexanalyze_experiments.h36 enum class VerboseLevel : size_t {
50 size_t PrefixLen(const std::string& a, const std::string& b);
101 size_t num_string_ids_from_code_ = 0;
102 size_t total_unique_method_ids_ = 0;
103 size_t total_unique_string_ids_ = 0;
107 static constexpr size_t kMaxFieldIndex = 32;
113 static constexpr size_t kShortBytecodeFieldIndexOutCutOff = 16u;
114 static constexpr size_t kShortBytecodeInOutCutOff = 16u;
137 size_t dex_code_bytes_ = 0;
138 size_t num_string_ids_ = 0;
[all …]
Ddexanalyze_bytecode.h47 SafeMap<size_t, size_t> types_;
49 SafeMap<size_t, size_t> fields_;
51 SafeMap<size_t, size_t> methods_;
53 SafeMap<size_t, size_t> strings_;
70 std::map<size_t, TypeLinkage>& types);
79 size_t alignment_ = 1u;
86 std::vector<size_t> move_result_reg_;
87 std::vector<size_t> first_arg_reg_count_;
88 std::vector<size_t> opcode_count_;
89 std::map<std::pair<uint32_t, uint32_t>, size_t> method_linkage_counts_;
[all …]
/art/runtime/
Dindex_bss_mapping.h41 static size_t IndexBits(uint32_t number_of_indexes) { in IndexBits()
46 static uint32_t IndexMask(size_t index_bits) { in IndexMask()
53 uint32_t GetIndex(size_t index_bits) const { in GetIndex()
57 uint32_t GetMask(size_t index_bits) const { in GetMask()
62 size_t GetBssOffset(size_t index_bits, uint32_t index, size_t slot_size) const;
72 static constexpr size_t npos = static_cast<size_t>(-1);
74 static size_t GetBssOffset(const IndexBssMapping* mapping,
77 size_t slot_size);
/art/libdexfile/dex/
Dutf.h38 size_t CountModifiedUtf8Chars(const char* utf8);
39 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count);
45 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count);
51 void ConvertModifiedUtf8ToUtf16(uint16_t* utf16_out, size_t out_chars,
52 const char* utf8_in, size_t in_bytes);
65 size_t utf16_length);
73 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count,
74 const uint16_t* utf16_in, size_t char_count);
80 int32_t ComputeUtf16Hash(const MemoryType* chars, size_t char_count) { in ComputeUtf16Hash()
88 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length);
/art/runtime/gc/accounting/
Dbitmap.h39 static Bitmap* Create(const std::string& name, size_t num_bits);
44 static Bitmap* CreateFromMemMap(MemMap&& mem_map, size_t num_bits);
47 static ALWAYS_INLINE constexpr size_t BitIndexToWordIndex(uintptr_t offset) { in BitIndexToWordIndex()
60 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit()
64 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit()
68 ALWAYS_INLINE bool TestBit(size_t bit_index) const;
71 ALWAYS_INLINE bool AtomicTestAndSetBit(size_t bit_index);
79 void VisitSetBits(uintptr_t visit_begin, size_t visit_end, const Visitor& visitor) const;
89 size_t BitmapSize() const { in BitmapSize()
94 ALWAYS_INLINE void CheckValidBitIndex(size_t bit_index) const { in CheckValidBitIndex()
[all …]

12345678910>>...35