Phoenix
Object-oriented orthogonally persistent operating system
|
Overhead for dynamically allocated memory chunks for storing debug information. More...
Public Types | |
enum | Flags { F_ARRAY = 0x1 } |
Flags for memory chunks. More... | |
Static Public Member Functions | |
static void * | Allocate (size_t size, bool isArray=false, size_t align=0, const char *file=0, int line=0) |
Allocate chunk of memory with overhead. | |
static void | Free (void *ptr, bool isArray=false) |
Free chunk of memory with overhead. | |
Public Attributes | |
u32 | magic |
Magic value. | |
u32 | line |
Source file line number. | |
size_t | size |
Source file name. | |
u32 | align |
Allocation alignment. | |
u32 | flags |
Memory chunk flags from Flags. |
Overhead for dynamically allocated memory chunks for storing debug information.
void * KmemDebugOverhead::Allocate | ( | size_t | size, |
bool | isArray = false , |
||
size_t | align = 0 , |
||
const char * | file = 0 , |
||
int | line = 0 |
||
) | [static] |
Allocate chunk of memory with overhead.
size | Allocation size for client data. |
isArray | true if it was array allocation. |
align | Client data alignment. |
file | Source file name. |
line | Source file line number. |
void KmemDebugOverhead::Free | ( | void * | ptr, |
bool | isArray = false |
||
) | [static] |
Free chunk of memory with overhead.
ptr | Pointer to client data. |
isArray | true if it is array allocation. |
Allocation alignment.
Memory chunk flags from Flags.
Source file line number.
Magic value.
size_t KmemDebugOverhead::size |
Source file name.
Allocation size.