Malloc.h File Reference

#include "ace/ACE_export.h"
#include "ace/Log_Msg.h"
#include "ace/Malloc.inl"

Include dependency graph for Malloc.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

union  ACE_max_align_info
class  ACE_Control_Block
 This information is stored in memory allocated by the . More...

class  ACE_Control_Block::ACE_Malloc_Header
 This is the control block header. It's used by 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...


Defines

#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

Malloc.h,v 4.88 2005/11/29 07:39:36 jwillemsen Exp

Author:
Doug Schmidt and Irfan Pyarali

Definition in file Malloc.h.


Define Documentation

#define ACE_CONTROL_BLOCK_ALIGN_BYTES   ACE_MALLOC_ROUNDUP (ACE_CONTROL_BLOCK_SIZE, ACE_MALLOC_ALIGN) - ACE_CONTROL_BLOCK_SIZE
 

Definition at line 376 of file Malloc.h.

Referenced by ACE_Control_Block::print_alignment_info().

#define ACE_CONTROL_BLOCK_SIZE
 

Value:

((int)(sizeof (ACE_Name_Node*) \
                                      + sizeof (ACE_Malloc_Header*) \
                                      + sizeof (int) \
                                      + MAXNAMELEN))

Definition at line 369 of file Malloc.h.

Referenced by ACE_Control_Block::print_alignment_info().

#define ACE_MALLOC_ALIGN   (sizeof (ACE_max_align_info))
 

Definition at line 233 of file Malloc.h.

Referenced by ACE_Cached_Allocator< T, ACE_LOCK >::ACE_Cached_Allocator(), ACE_Dynamic_Cached_Allocator< ACE_LOCK >::ACE_Dynamic_Cached_Allocator(), ACE_PI_Control_Block::print_alignment_info(), and ACE_Control_Block::print_alignment_info().

#define ACE_MALLOC_HEADER_SIZE   ACE_MALLOC_ROUNDUP(ACE_MALLOC_PADDING, ACE_MALLOC_ALIGN)
 

Definition at line 241 of file Malloc.h.

Referenced by ACE_PI_Control_Block::print_alignment_info(), and ACE_Control_Block::print_alignment_info().

#define ACE_MALLOC_PADDING   1
 

Definition at line 218 of file Malloc.h.

Referenced by ACE_PI_Control_Block::print_alignment_info(), and ACE_Control_Block::print_alignment_info().

#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))
 

Definition at line 284 of file Malloc.h.

Referenced by ACE_Control_Block::print_alignment_info().

#define ACE_MALLOC_ROUNDUP X,
 )     ((X) + ((Y) - 1) & ~((Y) - 1))
 

Definition at line 237 of file Malloc.h.

Referenced by ACE_Cached_Allocator< T, ACE_LOCK >::ACE_Cached_Allocator(), and ACE_Dynamic_Cached_Allocator< ACE_LOCK >::ACE_Dynamic_Cached_Allocator().

#define ACE_MALLOC_STATS  ) 
 

Definition at line 209 of file Malloc.h.

Referenced by ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::open(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_free(), and ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_malloc().


Generated on Thu Nov 9 10:24:04 2006 for ACE by doxygen 1.3.6