|
vecmem 1.22.0
|
Container for superpages in our buddy allocator. More...
#include </home/runner/work/vecmem/vecmem/core/src/memory/details/binary_page_memory_resource_impl.hpp>
Public Member Functions | |
| superpage (std::size_t, memory_resource &) | |
| Construct a superpage with a given size and upstream resource. | |
| std::size_t | total_pages () const |
| Return the total number of pages in the superpage. | |
Public Attributes | |
| std::size_t | m_size |
| Size (log_2) of the entire allocation represented by this superpage. | |
| std::size_t | m_min_page_size |
| The size of the smallest page in this superpage. | |
| std::size_t | m_num_pages |
| Total number of pages in this superpage. | |
| std::unique_ptr< page_state[]> | m_pages |
| Array of pages, remembering that this always resides in host-accessible memory. | |
| unique_alloc_ptr< std::byte[]> | m_memory |
| The actual allocation, which is just a byte pointer. | |
Container for superpages in our buddy allocator.
Super pages are large, contigous allocations, which are split into smaller pieces.
| unique_alloc_ptr<std::byte[]> vecmem::details::binary_page_memory_resource_impl::superpage::m_memory |
The actual allocation, which is just a byte pointer.
This is potentially host-inaccessible.