Searched refs:kChunkSize (Results 1 – 2 of 2) sorted by relevance
137 size_t index = offset / kChunkSize; in LookupMonitor()140 size_t offset_in_chunk = offset % kChunkSize; in LookupMonitor()147 return base_addr <= mon_ptr && (mon_ptr - base_addr < kChunkSize); in IsInChunk()161 + i * (kMaxListSize * kChunkSize) + j * kChunkSize); in ComputeMonitorIdInPool()190 static constexpr size_t kChunkSize = kPageSize; variable191 static_assert(IsPowerOfTwo(kChunkSize), "kChunkSize must be power of 2");205 static_assert(kMaxListSize * kChunkSize < (1 << LockWord::kMonitorIdSize),
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()