Home
last modified time | relevance | path

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

/art/runtime/base/
Darena_allocator.cc182 Arena::Arena() : bytes_allocated_(0), memory_(nullptr), size_(0), next_(nullptr) { in Arena()
207 memory_ = unaligned_memory_; in MallocArena()
209 memory_ = AlignUp(unaligned_memory_, ArenaAllocator::kArenaAlignment); in MallocArena()
211 size_t head = memory_ - unaligned_memory_; in MallocArena()
214 MEMORY_TOOL_MAKE_NOACCESS(memory_ + size, tail); in MallocArena()
217 DCHECK_ALIGNED(memory_, ArenaAllocator::kArenaAlignment); in MallocArena()
224 size_t head = memory_ - unaligned_memory_; in ~MallocArena()
227 MEMORY_TOOL_MAKE_UNDEFINED(memory_ + size_, tail); in ~MallocArena()
250 memory_ = map_->Begin(); in MemMapArena()
253 DCHECK_ALIGNED(memory_, ArenaAllocator::kArenaAlignment); in MemMapArena()
[all …]
Darena_allocator.h206 return memory_; in Begin()
210 return memory_ + size_; in End()
227 return memory_ <= ptr && ptr < memory_ + bytes_allocated_; in Contains()
232 uint8_t* memory_; variable
/art/compiler/optimizing/
Doptimizing_cfi_test.cc132 memory_.resize(size); in Allocate()
133 return memory_.data(); in Allocate()
136 const std::vector<uint8_t>& GetMemory() { return memory_; } in GetMemory()
139 std::vector<uint8_t> memory_; member in art::OptimizingCFITest::InternalCodeAllocator
Dcodegen_test_utils.h133 memory_.reset(new uint8_t[size]); in Allocate()
134 return memory_.get(); in Allocate()
138 uint8_t* GetMemory() const { return memory_.get(); } in GetMemory()
142 std::unique_ptr<uint8_t[]> memory_; variable
Doptimizing_compiler.cc112 : memory_(arena->Adapter(kArenaAllocCodeBuffer)), in CodeVectorAllocator()
117 memory_.resize(size); in Allocate()
118 return &memory_[0]; in Allocate()
122 const ArenaVector<uint8_t>& GetMemory() const { return memory_; } in GetMemory()
123 uint8_t* GetData() { return memory_.data(); } in GetData()
126 ArenaVector<uint8_t> memory_; member in art::FINAL