ACE  6.3.3
Classes | Macros
Malloc.h File Reference
#include "ace/Log_Category.h"
#include "ace/Malloc.inl"

Classes

union  ACE_max_align_info
 
class  ACE_Control_Block
 This information is stored in memory allocated by the <Memory_Pool>. More...
 
class  ACE_Control_Block::ACE_Malloc_Header
 This is the control block header. It's used by <ACE_Malloc> to keep track of each chunk of data when it's in the free list or in use. More...
 
class  ACE_Control_Block::ACE_Name_Node
 This class supports "named memory regions" within ACE_Malloc. More...
 

Macros

#define ACE_MALLOC_STATS(X)
 
#define ACE_MALLOC_PADDING   1
 
#define ACE_MALLOC_ALIGN   (sizeof (ACE_max_align_info))
 
#define ACE_MALLOC_ROUNDUP(X, Y)   (((X) + ((Y) - 1)) & ~((Y) - 1))
 
#define ACE_MALLOC_HEADER_SIZE   ACE_MALLOC_ROUNDUP(ACE_MALLOC_PADDING, ACE_MALLOC_ALIGN)
 
#define ACE_MALLOC_PADDING_SIZE   ACE_MALLOC_ROUNDUP (ACE_MALLOC_HEADER_SIZE + sizeof (ACE_Malloc_Header*) + sizeof (size_t), ACE_MALLOC_ALIGN) - (sizeof (ACE_Malloc_Header*) + sizeof (size_t))
 
#define ACE_CONTROL_BLOCK_SIZE
 
#define ACE_CONTROL_BLOCK_ALIGN_BYTES   ACE_MALLOC_ROUNDUP (ACE_CONTROL_BLOCK_SIZE, ACE_MALLOC_ALIGN) - ACE_CONTROL_BLOCK_SIZE
 

Detailed Description

Author
Doug Schmidt and Irfan Pyarali

Macro Definition Documentation

#define ACE_CONTROL_BLOCK_ALIGN_BYTES   ACE_MALLOC_ROUNDUP (ACE_CONTROL_BLOCK_SIZE, ACE_MALLOC_ALIGN) - ACE_CONTROL_BLOCK_SIZE
#define ACE_CONTROL_BLOCK_SIZE
Value:
((int)(sizeof (ACE_Name_Node*) \
+ sizeof (ACE_Malloc_Header*) \
+ sizeof (int) \
#define MAXNAMELEN
Definition: os_limits.h:61
#define ACE_MALLOC_ALIGN   (sizeof (ACE_max_align_info))
#define ACE_MALLOC_HEADER_SIZE   ACE_MALLOC_ROUNDUP(ACE_MALLOC_PADDING, ACE_MALLOC_ALIGN)
#define ACE_MALLOC_PADDING   1
#define ACE_MALLOC_PADDING_SIZE   ACE_MALLOC_ROUNDUP (ACE_MALLOC_HEADER_SIZE + sizeof (ACE_Malloc_Header*) + sizeof (size_t), ACE_MALLOC_ALIGN) - (sizeof (ACE_Malloc_Header*) + sizeof (size_t))
#define ACE_MALLOC_ROUNDUP (   X,
 
)    (((X) + ((Y) - 1)) & ~((Y) - 1))
#define ACE_MALLOC_STATS (   X)