summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/VirtualMemory.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/VirtualMemory.h')
-rw-r--r--view/sharedcache/core/VirtualMemory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/sharedcache/core/VirtualMemory.h b/view/sharedcache/core/VirtualMemory.h
index 2edc6ef3..647f4468 100644
--- a/view/sharedcache/core/VirtualMemory.h
+++ b/view/sharedcache/core/VirtualMemory.h
@@ -42,8 +42,13 @@ class VirtualMemory
{
std::shared_mutex m_regionMutex;
AddressRangeMap<VirtualMemoryRegion> m_regions;
+ uint64_t m_addressSize = 8;
public:
+ explicit VirtualMemory(uint64_t addressSize = 8) : m_addressSize(addressSize) {}
+
+ uint64_t GetAddressSize() const { return m_addressSize; }
+
// At no point do we ever store a strong pointer to a file accessor, that is the job of the `FileAccessorCache`.
void MapRegion(WeakFileAccessor fileAccessor, AddressRange mappedRange, uint64_t fileOffset);