Lines Matching full:bucket
26 // Each bucket is a bitmap with a bit corresponding to a single slot offset.
30 FREE_EMPTY_BUCKETS, // An empty bucket will be deallocated immediately.
31 PREFREE_EMPTY_BUCKETS, // An empty bucket will be unlinked from the slot
34 KEEP_EMPTY_BUCKETS // An empty bucket will be kept.
39 bucket[i].SetValue(nullptr);
54 // allocation of the bucket is not thread-safe.
58 base::AtomicValue<uint32_t>* current_bucket = bucket[bucket_index].Value();
61 bucket[bucket_index].SetValue(current_bucket);
72 base::AtomicValue<uint32_t>* current_bucket = bucket[bucket_index].Value();
103 base::AtomicValue<uint32_t>* bucket_ptr = bucket[current_bucket].Value();
108 // The rest of the current bucket is cleared.
109 // Move on to the next bucket.
122 bucket_ptr = bucket[current_bucket].Value();
130 bucket_ptr = bucket[current_bucket].Value();
148 if (bucket[bucket_index].Value() != nullptr) {
149 uint32_t cell = bucket[bucket_index].Value()[cell_index].Value();
170 bucket[bucket_index].Value();
241 void ClearBucket(base::AtomicValue<uint32_t>* bucket, int start_cell,
247 bucket[current_cell].SetValue(0);
253 base::AtomicValue<uint32_t>* bucket_ptr = bucket[bucket_index].Value();
257 bucket[bucket_index].SetValue(nullptr);
262 DeleteArray<base::AtomicValue<uint32_t>>(bucket[bucket_index].Value());
263 bucket[bucket_index].SetValue(nullptr);
268 base::AtomicValue<uint32_t>* cells = bucket[bucket_index].Value();
280 // Converts the slot offset into bucket/cell/bit index.
291 base::AtomicValue<base::AtomicValue<uint32_t>*> bucket[kBuckets];