Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 5 of 5) sorted by relevance

/ark/runtime_core/libpandabase/mem/
Darena_allocator.h111 void Resize(size_t new_size);
146 void Resize(size_t new_size) in Resize() argument
148 ASSERT(new_size <= GetOccupiedSize()); in Resize()
149 curPos_ = static_cast<char *>(ToVoidPtr(ToUintPtr(&buff_[0]) + new_size)); in Resize()
170 void Resize(size_t new_size) in Resize() argument
172 (void)new_size; in Resize()
Darena_allocator.cpp118 void ArenaAllocatorT<use_oom_handler>::Resize(size_t new_size) in Resize() argument
120 LOG(DEBUG, ALLOC) << "ArenaAllocator: resize to new size " << new_size; in Resize()
122 if (cur_size <= new_size) { in Resize()
123 …LOG_IF(cur_size < new_size, FATAL, ALLOC) << "ArenaAllocator: resize to bigger size than we have. … in Resize()
127 size_t bytes_to_delete = cur_size - new_size; in Resize()
Darena.cpp127 void Arena::Resize(size_t new_size) in Resize() argument
130 ASSERT(new_size <= old_size); in Resize()
131 curPos_ = ToVoidPtr(ToUintPtr(GetStartPos()) + new_size); in Resize()
132 ASAN_POISON_MEMORY_REGION(curPos_, old_size - new_size); in Resize()
Darena.h110 void Resize(size_t new_size);
/ark/runtime_core/verification/util/tests/
Dbit_vector_test.cpp262 prop("resize(size_t)", [](BSet &&bset, size_t new_size) { in __anon823681b81102() argument
264 new_size %= bset.Bits.size(); in __anon823681b81102()
265 bset.Bits.resize(new_size); in __anon823681b81102()
266 auto universum = Universum(new_size); in __anon823681b81102()
269 RC_ASSERT(bset.Bits.size() == new_size); in __anon823681b81102()