Searched refs:capacity_ (Results 1 – 2 of 2) sorted by relevance
/bionic/libc/bionic/ |
D | scandir.cpp | 32 ScandirResult() : names_(nullptr), size_(0), capacity_(0) { in ScandirResult() 47 size_ = capacity_ = 0; in release() 52 if (size_ >= capacity_) { in Add() 53 size_t new_capacity = capacity_ + 32; in Add() 60 capacity_ = new_capacity; in Add() 79 size_t capacity_; member in ScandirResult
|
D | atexit.cpp | 70 size_t capacity_; member in __anon528dbc420111::AtexitArray 92 if (size_ >= capacity_ && !expand_capacity()) return false; in append_entry() 184 if (!next_capacity(capacity_, &new_capacity)) return false; in expand_capacity() 187 set_writable(true, 0, capacity_); in expand_capacity() 197 new_pages = mremap(array_, page_end_of_index(capacity_), new_capacity_bytes, MREMAP_MAYMOVE); in expand_capacity() 207 capacity_ = new_capacity; in expand_capacity() 209 set_writable(false, 0, capacity_); in expand_capacity()
|