CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MallocHeap::Tag Struct Reference

Public Member Functions

 Tag ()
 
 Tag (int64_t s)
 
uint64_t GetSize ()
 
bool IsFree ()
 
TagJumpToNext ()
 
unsigned char * GetBlock ()
 

Public Attributes

int64_t size
 

Detailed Description

Prepends every block. The size does not include the size of the tag. The size of the Tag structure has to be a multiple of 8 for alignment.

Definition at line 79 of file malloc_heap.h.

Constructor & Destructor Documentation

MallocHeap::Tag::Tag ( )
inline

Definition at line 80 of file malloc_heap.h.

MallocHeap::Tag::Tag ( int64_t  s)
inlineexplicit

Definition at line 81 of file malloc_heap.h.

Member Function Documentation

unsigned char* MallocHeap::Tag::GetBlock ( )
inline

Definition at line 91 of file malloc_heap.h.

Referenced by MallocHeap::Compact().

Here is the caller graph for this function:

uint64_t MallocHeap::Tag::GetSize ( )
inline

Definition at line 82 of file malloc_heap.h.

Referenced by MallocHeap::Compact(), JumpToNext(), and MallocHeap::MarkFree().

Here is the caller graph for this function:

bool MallocHeap::Tag::IsFree ( )
inline

Definition at line 86 of file malloc_heap.h.

Referenced by MallocHeap::Compact().

Here is the caller graph for this function:

Tag* MallocHeap::Tag::JumpToNext ( )
inline

Definition at line 87 of file malloc_heap.h.

Referenced by MallocHeap::Compact().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int64_t MallocHeap::Tag::size

Positive for reserved blocks, negative for free blocks.

Definition at line 97 of file malloc_heap.h.

Referenced by MallocHeap::Compact(), MallocHeap::GetSize(), GetSize(), IsFree(), and MallocHeap::MarkFree().


The documentation for this struct was generated from the following file: