#include <src/component/IgHook_IgHookTrace.h>
Definition at line 16 of file IgHook_IgHookTrace.h.
IgHookTraceAlloc::IgHookTraceAlloc |
( |
void |
| ) |
|
void * IgHookTraceAlloc::allocate |
( |
size_t |
bytes | ) |
|
Definition at line 101 of file IgHook_IgHookTrace.cpp.
111 size_t psize = getpagesize();
112 size_t hunk = psize * 20;
113 if ( hunk < bytes ) hunk = ( hunk + psize - 1 ) & ~( psize - 1 );
114 void* addr = mmap( 0, hunk, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0 );
115 if ( addr == MAP_FAILED )
return 0;
size_t IgHookTraceAlloc::m_left |
|
private |
void* IgHookTraceAlloc::m_pool |
|
private |
The documentation for this class was generated from the following files: