LLDB mainline
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::AllocatedMemoryCache Class Reference

#include <Memory.h>

Public Member Functions

 AllocatedMemoryCache (Process &process)
 ~AllocatedMemoryCache ()
void Clear (bool deallocate_memory)
lldb::addr_t AllocateMemory (size_t byte_size, uint32_t permissions, Status &error)
bool DeallocateMemory (lldb::addr_t ptr)

Protected Types

typedef std::shared_ptr< AllocatedBlockAllocatedBlockSP
typedef std::multimap< uint32_t, AllocatedBlockSPPermissionsToBlockMap

Protected Member Functions

AllocatedBlockSP AllocatePage (uint32_t byte_size, uint32_t permissions, uint32_t chunk_size, Status &error)

Protected Attributes

std::recursive_mutex m_mutex
PermissionsToBlockMap m_memory_map

Private Member Functions

 AllocatedMemoryCache (const AllocatedMemoryCache &)=delete
const AllocatedMemoryCacheoperator= (const AllocatedMemoryCache &)=delete

Detailed Description

Definition at line 114 of file Memory.h.

Member Typedef Documentation

◆ AllocatedBlockSP

Definition at line 129 of file Memory.h.

◆ PermissionsToBlockMap

Definition at line 137 of file Memory.h.

Constructor & Destructor Documentation

◆ AllocatedMemoryCache() [1/2]

AllocatedMemoryCache::AllocatedMemoryCache ( Process process)

Definition at line 344 of file Memory.cpp.

◆ ~AllocatedMemoryCache()

AllocatedMemoryCache::~AllocatedMemoryCache ( )

◆ AllocatedMemoryCache() [2/2]

lldb_private::AllocatedMemoryCache::AllocatedMemoryCache ( const AllocatedMemoryCache )

Member Function Documentation

◆ AllocateMemory()

lldb::addr_t AllocatedMemoryCache::AllocateMemory ( size_t  byte_size,
uint32_t  permissions,
Status error 

◆ AllocatePage()

AllocatedMemoryCache::AllocatedBlockSP AllocatedMemoryCache::AllocatePage ( uint32_t  byte_size,
uint32_t  permissions,
uint32_t  chunk_size,
Status error 

◆ Clear()

void AllocatedMemoryCache::Clear ( bool  deallocate_memory)

◆ DeallocateMemory()

bool AllocatedMemoryCache::DeallocateMemory ( lldb::addr_t  ptr)

◆ operator=()

const AllocatedMemoryCache & lldb_private::AllocatedMemoryCache::operator= ( const AllocatedMemoryCache )

Member Data Documentation

◆ m_memory_map

PermissionsToBlockMap lldb_private::AllocatedMemoryCache::m_memory_map

Definition at line 138 of file Memory.h.

Referenced by AllocateMemory(), AllocatePage(), Clear(), and DeallocateMemory().

◆ m_mutex

std::recursive_mutex lldb_private::AllocatedMemoryCache::m_mutex

Definition at line 136 of file Memory.h.

Referenced by AllocateMemory(), Clear(), and DeallocateMemory().

◆ m_process

Process& lldb_private::AllocatedMemoryCache::m_process

Definition at line 135 of file Memory.h.

Referenced by AllocatePage(), and Clear().

The documentation for this class was generated from the following files: