Lines Matching refs:array_
60 const AtexitEntry& operator[](size_t idx) const { return array_[idx]; } in operator []()
67 AtexitEntry* array_; member in __anon0ca2bf2e0111::AtexitArray
103 array_[size_++] = entry; in append_entry()
114 AtexitEntry result = array_[idx]; in extract_entry()
117 array_[idx] = {}; in extract_entry()
131 while (src < size_ && array_[src].fn != nullptr) { in recompact()
138 const AtexitEntry entry = array_[src]; in recompact()
139 array_[src] = {}; in recompact()
141 array_[dst++] = entry; in recompact()
149 madvise(reinterpret_cast<char*>(array_) + new_bytes, old_bytes - new_bytes, MADV_DONTNEED); in recompact()
161 if (array_ == nullptr) return; in set_writable()
163 if (mprotect(array_, round_up_to_page_bytes(capacity_), prot) != 0) { in set_writable()
173 if (array_ == nullptr) { in expand_capacity()
178 mremap(array_, round_up_to_page_bytes(capacity_), new_capacity_bytes, MREMAP_MAYMOVE); in expand_capacity()
188 array_ = static_cast<AtexitEntry*>(new_pages); in expand_capacity()