Home
last modified time | relevance | path

Searched refs:swap_space_ (Results 1 – 3 of 3) sorted by relevance

/art/compiler/utils/
Dswap_space.h114 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator()
117 SwapAllocator(const SwapAllocator<U>& other) : swap_space_(other.swap_space_) {} in SwapAllocator()
124 SwapSpace* swap_space_;
149 explicit SwapAllocator(SwapSpace* swap_space) : swap_space_(swap_space) {} in SwapAllocator()
152 SwapAllocator(const SwapAllocator<U>& other) : swap_space_(other.swap_space_) {} in SwapAllocator()
167 if (swap_space_ == nullptr) {
172 return reinterpret_cast<T*>(swap_space_->Alloc(n * sizeof(T)));
176 if (swap_space_ == nullptr) { in deallocate()
179 swap_space_->Free(p, n * sizeof(T)); in deallocate()
195 return swap_space_ == other.swap_space_;
[all …]
/art/compiler/driver/
Dcompiled_method_storage.cc60 return CopyArray(swap_space_.get(), data); in AllocateOrDeduplicateArray()
70 ReleaseArray(swap_space_.get(), array); in ReleaseArrayIfNotDeduplicated()
156 : swap_space_(swap_space) { in LengthPrefixedArrayAlloc()
160 return CopyArray(swap_space_, array); in Copy()
164 ReleaseArray(swap_space_, array); in Destroy()
168 SwapSpace* const swap_space_; member in art::CompiledMethodStorage::LengthPrefixedArrayAlloc
172 : swap_space_(swap_fd == -1 ? nullptr : new SwapSpace(swap_fd, 10 * MB)), in CompiledMethodStorage()
174 dedupe_code_("dedupe code", LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage()
176 LengthPrefixedArrayAlloc<SrcMapElem>(swap_space_.get())), in CompiledMethodStorage()
178 LengthPrefixedArrayAlloc<uint8_t>(swap_space_.get())), in CompiledMethodStorage()
[all …]
Dcompiled_method_storage.h49 return SwapAllocator<void>(swap_space_.get()); in GetSwapSpaceAllocator()
94 std::unique_ptr<SwapSpace> swap_space_; variable