Common/MemArena: Assert return value of LazyMemoryRegion::Clear()'s mmap() call.
This commit is contained in:
parent
c0440df288
commit
a20bb3e05b
|
@ -172,7 +172,9 @@ void LazyMemoryRegion::Clear()
|
|||
{
|
||||
ASSERT(m_memory);
|
||||
|
||||
mmap(m_memory, m_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
|
||||
void* new_memory = mmap(m_memory, m_size, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
|
||||
ASSERT(new_memory == m_memory);
|
||||
}
|
||||
|
||||
void LazyMemoryRegion::Release()
|
||||
|
|
|
@ -138,7 +138,9 @@ void LazyMemoryRegion::Clear()
|
|||
{
|
||||
ASSERT(m_memory);
|
||||
|
||||
mmap(m_memory, m_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
|
||||
void* new_memory = mmap(m_memory, m_size, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0);
|
||||
ASSERT(new_memory == m_memory);
|
||||
}
|
||||
|
||||
void LazyMemoryRegion::Release()
|
||||
|
|
Loading…
Reference in New Issue