Home
last modified time | relevance | path

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

12345678910>>...19

/art/runtime/gc/allocator/
Drosalloc.h51 size_t ByteSize(RosAlloc* rosalloc) const EXCLUSIVE_LOCKS_REQUIRED(rosalloc->lock_) { in ByteSize()
53 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in ByteSize()
54 size_t byte_size = rosalloc->free_page_run_size_map_[pm_idx]; in ByteSize()
55 DCHECK_GE(byte_size, static_cast<size_t>(0)); in ByteSize()
56 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in ByteSize()
59 void SetByteSize(RosAlloc* rosalloc, size_t byte_size) in SetByteSize()
61 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in SetByteSize()
63 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in SetByteSize()
101 size_t byte_size = ByteSize(rosalloc); in ReleasePages()
102 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in ReleasePages()
[all …]
Drosalloc.cc37 static constexpr size_t kPrefetchStride = 64;
39 size_t RosAlloc::bracketSizes[kNumOfSizeBrackets];
40 size_t RosAlloc::numOfPages[kNumOfSizeBrackets];
41 size_t RosAlloc::numOfSlots[kNumOfSizeBrackets];
42 size_t RosAlloc::headerSizes[kNumOfSizeBrackets];
43 size_t RosAlloc::bulkFreeBitMapOffsets[kNumOfSizeBrackets];
44 size_t RosAlloc::threadLocalFreeBitMapOffsets[kNumOfSizeBrackets];
46 size_t RosAlloc::dedicated_full_run_storage_[kPageSize / sizeof(size_t)] = { 0 };
50 RosAlloc::RosAlloc(void* base, size_t capacity, size_t max_capacity, in RosAlloc()
51 PageReleaseMode page_release_mode, size_t page_release_size_threshold) in RosAlloc()
[all …]
/art/runtime/gc/space/
Drosalloc_space.h41 static RosAllocSpace* Create(const std::string& name, size_t initial_size, size_t growth_limit,
42 size_t capacity, byte* requested_begin, bool low_memory_mode,
45 size_t starting_size, size_t initial_size,
46 size_t growth_limit, size_t capacity,
49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
50 size_t* usable_size) OVERRIDE LOCKS_EXCLUDED(lock_);
51 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc()
52 size_t* usable_size) OVERRIDE { in Alloc()
55 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe()
56 size_t* usable_size) in AllocThreadUnsafe()
[all …]
Ddlmalloc_space.h38 size_t starting_size, size_t initial_size,
39 size_t growth_limit, size_t capacity,
46 static DlMallocSpace* Create(const std::string& name, size_t initial_size, size_t growth_limit,
47 size_t capacity, byte* requested_begin, bool can_move_objects);
50 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
51 size_t* usable_size) OVERRIDE LOCKS_EXCLUDED(lock_);
53 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc()
54 size_t* usable_size) OVERRIDE LOCKS_EXCLUDED(lock_) { in Alloc()
58 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize()
62 virtual size_t Free(Thread* self, mirror::Object* ptr) OVERRIDE
[all …]
Dmalloc_space.h50 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
57 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes,
58 size_t* bytes_allocated, size_t* usable_size) = 0;
60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
61 size_t* usable_size) = 0;
64 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
65 virtual size_t Free(Thread* self, mirror::Object* ptr)
67 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs)
79 virtual size_t Trim() = 0;
87 virtual size_t GetFootprint() = 0;
[all …]
Ddlmalloc_space.cc39 byte* end, byte* limit, size_t growth_limit, in DlMallocSpace()
40 bool can_move_objects, size_t starting_size, in DlMallocSpace()
41 size_t initial_size) in DlMallocSpace()
49 size_t starting_size, size_t initial_size, in CreateFromMemMap()
50 size_t growth_limit, size_t capacity, in CreateFromMemMap()
77 DlMallocSpace* DlMallocSpace::Create(const std::string& name, size_t initial_size, in Create()
78 size_t growth_limit, size_t capacity, byte* requested_begin, in Create()
94 size_t starting_size = kPageSize; in Create()
112 void* DlMallocSpace::CreateMspace(void* begin, size_t morecore_start, size_t initial_size) { in CreateMspace()
128 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth()
[all …]
Dlarge_object_space_test.cc28 static constexpr size_t kNumThreads = 10;
29 static constexpr size_t kNumIterations = 1000;
35 size_t rand_seed = 0; in LargeObjectTest()
36 for (size_t i = 0; i < 2; ++i) { in LargeObjectTest()
44 static const size_t num_allocations = 64; in LargeObjectTest()
45 static const size_t max_allocation_size = 0x100000; in LargeObjectTest()
46 std::vector<std::pair<mirror::Object*, size_t>> requests; in LargeObjectTest()
48 for (size_t phase = 0; phase < 2; ++phase) { in LargeObjectTest()
50 size_t request_size = test_rand(&rand_seed) % max_allocation_size; in LargeObjectTest()
51 size_t allocation_size = 0; in LargeObjectTest()
[all …]
Dbump_pointer_space.h36 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg);
45 static BumpPointerSpace* Create(const std::string& name, size_t capacity, byte* requested_begin);
49 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
50 size_t* usable_size) OVERRIDE;
52 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 size_t* usable_size)
56 mirror::Object* AllocNonvirtual(size_t num_bytes);
57 mirror::Object* AllocNonvirtualWithoutAccounting(size_t num_bytes);
60 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize()
66 size_t Free(Thread*, mirror::Object*) OVERRIDE { in Free()
[all …]
Dvalgrind_malloc_space.h33 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
34 size_t* usable_size) OVERRIDE;
35 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
36 size_t* usable_size) OVERRIDE;
38 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE;
40 size_t Free(Thread* self, mirror::Object* ptr) OVERRIDE
43 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
50 byte* begin, byte* end, byte* limit, size_t growth_limit,
51 size_t initial_size, bool can_move_objects, size_t starting_size);
Drosalloc_space.cc36 static constexpr size_t kPrefetchLookAhead = 8;
46 byte* limit, size_t growth_limit, bool can_move_objects, in RosAllocSpace()
47 size_t starting_size, size_t initial_size, bool low_memory_mode) in RosAllocSpace()
55 size_t starting_size, size_t initial_size, in CreateFromMemMap()
56 size_t growth_limit, size_t capacity, in CreateFromMemMap()
88 RosAllocSpace* RosAllocSpace::Create(const std::string& name, size_t initial_size, in Create()
89 size_t growth_limit, size_t capacity, byte* requested_begin, in Create()
105 size_t starting_size = Heap::kDefaultStartingSize; in Create()
125 allocator::RosAlloc* RosAllocSpace::CreateRosAlloc(void* begin, size_t morecore_start, in CreateRosAlloc()
126 size_t initial_size, in CreateRosAlloc()
[all …]
Dvalgrind_malloc_space-inl.h30 static constexpr size_t kValgrindRedZoneBytes = 8;
33 mirror::Object* ValgrindMallocSpace<S, A>::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth()
34 size_t* bytes_allocated, in AllocWithGrowth()
35 size_t* usable_size) { in AllocWithGrowth()
50 mirror::Object* ValgrindMallocSpace<S, A>::Alloc(Thread* self, size_t num_bytes, in Alloc()
51 size_t* bytes_allocated, in Alloc()
52 size_t* usable_size) { in Alloc()
67 size_t ValgrindMallocSpace<S, A>::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize()
68 size_t result = S::AllocationSize(reinterpret_cast<mirror::Object*>( in AllocationSize()
74 size_t ValgrindMallocSpace<S, A>::Free(Thread* self, mirror::Object* ptr) { in Free()
[all …]
Dlarge_object_space.h57 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE;
82 size_t Size() const { in Size()
90 void LogFragmentationAllocFailure(std::ostream& os, size_t failed_alloc_bytes) OVERRIDE
95 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg);
119 size_t AllocationSize(mirror::Object* obj, size_t* usable_size);
120 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
121 size_t* usable_size);
122 size_t Free(Thread* self, mirror::Object* ptr);
143 static constexpr size_t kAlignment = kPageSize;
146 static FreeListSpace* Create(const std::string& name, byte* requested_begin, size_t capacity);
[all …]
/art/compiler/driver/
Dcompiler_options.h39 static const size_t kDefaultHugeMethodThreshold = 10000;
40 static const size_t kDefaultLargeMethodThreshold = 600;
41 static const size_t kDefaultSmallMethodThreshold = 60;
42 static const size_t kDefaultTinyMethodThreshold = 20;
43 static const size_t kDefaultNumDexMethodsThreshold = 900;
68 size_t huge_method_threshold, in CompilerOptions()
69 size_t large_method_threshold, in CompilerOptions()
70 size_t small_method_threshold, in CompilerOptions()
71 size_t tiny_method_threshold, in CompilerOptions()
72 size_t num_dex_methods_threshold, in CompilerOptions()
[all …]
/art/compiler/
Doat_writer.h91 size_t GetSize() const { in GetSize()
144 size_t InitOatHeader();
145 size_t InitOatDexFiles(size_t offset);
146 size_t InitDexFiles(size_t offset);
147 size_t InitOatClasses(size_t offset);
148 size_t InitOatMaps(size_t offset);
149 size_t InitOatCode(size_t offset)
151 size_t InitOatCodeDexFiles(size_t offset)
154 bool WriteTables(OutputStream* out, const size_t file_offset);
155 size_t WriteMaps(OutputStream* out, const size_t file_offset, size_t relative_offset);
[all …]
Dgc_map_builder.h29 GcMapBuilder(std::vector<uint8_t>* table, size_t entries, uint32_t max_native_offset, in GcMapBuilder()
30 size_t references_width) in GcMapBuilder()
49 size_t table_index = TableIndex(native_offset); in AddEntry()
60 size_t TableIndex(uint32_t native_offset) { in TableIndex()
64 uint32_t GetCodeOffset(size_t table_index) { in GetCodeOffset()
66 size_t table_offset = (table_index * EntryWidth()) + sizeof(uint32_t); in GetCodeOffset()
67 for (size_t i = 0; i < native_offset_width_; i++) { in GetCodeOffset()
73 void SetCodeOffset(size_t table_index, uint32_t native_offset) { in SetCodeOffset()
74 size_t table_offset = (table_index * EntryWidth()) + sizeof(uint32_t); in SetCodeOffset()
75 for (size_t i = 0; i < native_offset_width_; i++) { in SetCodeOffset()
[all …]
/art/compiler/optimizing/
Dlive_interval_test.cc30 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST()
36 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST()
47 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST()
57 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST()
75 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST()
85 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST()
103 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}}; in TEST()
105 static constexpr size_t ranges2[][2] = {{5, 6}}; in TEST()
112 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}}; in TEST()
114 static constexpr size_t ranges2[][2] = {{5, 42}}; in TEST()
[all …]
/art/runtime/arch/
Dstub_test.cc66 size_t Invoke3(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self) { in Invoke3()
71 size_t Invoke3WithReferrer(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, in Invoke3WithReferrer()
77 size_t result; in Invoke3WithReferrer()
78 size_t fpr_result = 0; in Invoke3WithReferrer()
294 size_t Invoke3WithReferrerAndHidden(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, in Invoke3WithReferrerAndHidden()
295 Thread* self, mirror::ArtMethod* referrer, size_t hidden) { in Invoke3WithReferrerAndHidden()
300 size_t result; in Invoke3WithReferrerAndHidden()
301 size_t fpr_result = 0; in Invoke3WithReferrerAndHidden()
521 size_t Invoke3UWithReferrer(size_t arg0, uint64_t arg1, uintptr_t code, Thread* self, in Invoke3UWithReferrer()
536 size_t Invoke3UUWithReferrer(uint32_t arg0, uint32_t arg1, uint64_t arg2, uintptr_t code, in Invoke3UUWithReferrer()
[all …]
Dmemcmp16_test.cc37 int32_t memcmp16_compare(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_compare()
38 for (size_t i = 0; i < count; i++) { in memcmp16_compare()
46 static constexpr size_t kMemCmp16Rounds = 100000;
48 static void CheckSeparate(size_t max_length, size_t min_length) { in CheckSeparate()
50 size_t range_of_tests = 7; // All four (weighted) tests active in the beginning. in CheckSeparate()
52 for (size_t round = 0; round < kMemCmp16Rounds; ++round) { in CheckSeparate()
53 size_t type = r.next() % range_of_tests; in CheckSeparate()
54 size_t count1, count2; in CheckSeparate()
101 size_t min = count1 < count2 ? count1 : count2; in CheckSeparate()
105 for (size_t i = 0; i < min; ++i) { in CheckSeparate()
[all …]
/art/runtime/
Dgc_map.h35 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 …]
Dleb128_test.cc95 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
101 for (size_t j = 0; j < 5; ++j) { in TEST()
114 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
117 size_t data_size = static_cast<size_t>(end - encoded_data); in TEST()
120 for (size_t j = 0; j < 5; ++j) { in TEST()
134 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
138 for (size_t i = 0; i < arraysize(uleb128_tests); ++i) { in TEST()
140 for (size_t j = 0; j < UnsignedLeb128Size(uleb128_tests[i].decoded); ++j) { in TEST()
143 for (size_t j = UnsignedLeb128Size(uleb128_tests[i].decoded); j < 5; ++j) { in TEST()
149 static_cast<size_t>(encoded_data_ptr - &builder.GetData()[0])); in TEST()
[all …]
Dhandle_scope.h50 static size_t SizeOf(uint32_t num_references) { in SizeOf()
51 size_t header_size = sizeof(HandleScope); in SizeOf()
52 size_t data_size = sizeof(StackReference<mirror::Object>) * num_references; in SizeOf()
57 static size_t SizeOf(size_t pointer_size, uint32_t num_references) { in SizeOf()
59 size_t header_size = pointer_size + sizeof(number_of_references_); in SizeOf()
60 size_t data_size = sizeof(StackReference<mirror::Object>) * num_references; in SizeOf()
80 mirror::Object* GetReference(size_t i) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in GetReference()
86 Handle<mirror::Object> GetHandle(size_t i) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in GetHandle()
92 void SetReference(size_t i, mirror::Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in SetReference()
108 static size_t LinkOffset(size_t pointer_size) { in LinkOffset()
[all …]
Dglobals.h31 static constexpr size_t KB = 1024;
32 static constexpr size_t MB = KB * KB;
33 static constexpr size_t GB = KB * KB * KB;
36 static constexpr size_t kWordSize = sizeof(word);
37 static constexpr size_t kPointerSize = sizeof(void*);
39 static constexpr size_t kBitsPerByte = 8;
40 static constexpr size_t kBitsPerByteLog2 = 3;
42 static constexpr size_t kWordHighBitMask = static_cast<size_t>(1) << (kBitsPerWord - 1);
45 static constexpr size_t kStackAlignment = 16;
52 static constexpr size_t kObjectAlignment = 8;
[all …]
/art/compiler/utils/
Dgrowable_array.h75 size_t GetIndex() const { in GetIndex()
80 size_t idx_;
84 GrowableArray(ArenaAllocator* arena, size_t init_length, OatListKind kind = kGrowableArrayMisc)
95 void Resize(size_t new_length) { in Resize()
98 size_t target_length = in Resize()
123 void InsertAt(size_t index, T elem) { in InsertAt()
126 for (size_t i = Size() - 1; i > index; --i) { in InsertAt()
136 T Get(size_t index) const { in Get()
142 void Put(size_t index, T elem) { in Put()
147 void Increment(size_t index) { in Increment()
[all …]
/art/runtime/gc/
Dheap.h132 static constexpr size_t kDefaultLargeObjectThreshold = 3 * kPageSize;
133 static constexpr size_t kDefaultStartingSize = kPageSize;
134 static constexpr size_t kDefaultInitialSize = 2 * MB;
135 static constexpr size_t kDefaultMaximumSize = 256 * MB;
136 static constexpr size_t kDefaultNonMovingSpaceCapacity = 64 * MB;
137 static constexpr size_t kDefaultMaxFree = 2 * MB;
138 static constexpr size_t kDefaultMinFree = kDefaultMaxFree / 4;
139 static constexpr size_t kDefaultLongPauseLogThreshold = MsToNs(5);
140 static constexpr size_t kDefaultLongGCLogThreshold = MsToNs(100);
141 static constexpr size_t kDefaultTLABSize = 256 * KB;
[all …]
/art/compiler/jni/quick/
Dcalling_convention.h37 size_t SizeOfReturnValue() const { in SizeOfReturnValue()
38 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[0])); in SizeOfReturnValue()
73 size_t frame_pointer_size) in CallingConvention()
84 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention()
157 size_t NumArgs() const { in NumArgs()
160 size_t NumLongOrDoubleArgs() const { in NumLongOrDoubleArgs()
163 size_t NumFloatOrDoubleArgs() const { in NumFloatOrDoubleArgs()
166 size_t NumReferenceArgs() const { in NumReferenceArgs()
169 size_t ParamSize(unsigned int param) const { in ParamSize()
176 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[param])); in ParamSize()
[all …]

12345678910>>...19