Searched refs:kChunkSize (Results 1 – 4 of 4) sorted by relevance
/art/runtime/ |
D | monitor_pool.h | 144 size_t index = offset / kChunkSize; in LookupMonitor() 147 size_t offset_in_chunk = offset % kChunkSize; in LookupMonitor() 154 return base_addr <= mon_ptr && (mon_ptr - base_addr < kChunkSize); in IsInChunk() 168 + i * (kMaxListSize * kChunkSize) + j * kChunkSize); in ComputeMonitorIdInPool() 196 static constexpr size_t kChunkSize = 4096; variable 197 static_assert(IsPowerOfTwo(kChunkSize), "kChunkSize must be power of 2"); 198 static constexpr size_t kChunkCapacity = kChunkSize / kAlignedMonitorSize; 212 static_assert(kMaxListSize * kChunkSize < (1 << LockWord::kMonitorIdSize),
|
D | monitor_pool.cc | 60 void* chunk = allocator_.allocate(kChunkSize); in AllocateChunk() 75 last->monitor_id_ = OffsetToMonitorId(current_chunk_list_index_* (kMaxListSize * kChunkSize) in AllocateChunk() 76 + (num_chunks_ - 1) * kChunkSize + (kChunkCapacity - 1) * kAlignedMonitorSize); in AllocateChunk() 99 allocator_.deallocate(reinterpret_cast<uint8_t*>(monitor_chunks_[i][j]), kChunkSize); in FreeInternal()
|
/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 44 static constexpr size_t kChunkSize = 64 * art::KB; member in unix_file::FdFileTest 202 std::vector<int8_t> data_buffer(/*n=*/kChunkSize, /*val=*/1); in CreateSparseSourceFile() 204 ASSERT_TRUE(src->WriteFully(data_buffer.data(), kChunkSize)); in CreateSparseSourceFile() 207 ASSERT_GT(lseek(src->Fd(), kChunkSize, SEEK_CUR), 0); in CreateSparseSourceFile() 208 ASSERT_TRUE(src->WriteFully(data_buffer.data(), kChunkSize)); in CreateSparseSourceFile() 213 size_t expected_length = (2 * kNumChunks - 1) * kChunkSize + empty_prefix + empty_suffix; in CreateSparseSourceFile() 337 EXPECT_GE(src1_stat.st_blocks * kStatBlockSize, kNumChunks * kChunkSize); in TEST_F() 343 ASSERT_NO_FATAL_FAILURE(CreateSparseSourceFile(kChunkSize, kChunkSize, src2)); in TEST_F() 390 empty_region_size <= kChunkSize / 2; in TEST_F() 453 if (empty_prefix == 0 && empty_suffix == 0 && copy_start_offset <= kChunkSize in TEST_F() [all …]
|
/art/libartbase/base/ |
D | bit_memory_region.h | 274 constexpr size_t kChunkSize = BitSizeOf<size_t>(); in VisitChunks() local 283 data += bit_start / kChunkSize; in VisitChunks() 284 if ((bit_start % kChunkSize) != 0u) { in VisitChunks() 285 size_t leading_bits = kChunkSize - (bit_start % kChunkSize); in VisitChunks() 286 size_t value = (*data) >> (bit_start % kChunkSize); in VisitChunks() 298 while (remaining_bits >= kChunkSize) { in VisitChunks() 300 if (!visitor(offset, kChunkSize, value)) { in VisitChunks() 303 offset += kChunkSize; in VisitChunks() 304 remaining_bits -= kChunkSize; in VisitChunks()
|