Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Malloc.h File Reference

Malloc.h,v 4.78 2002/08/01 16:17:18 bala Exp. More...

`#include "ace/pre.h"`
`#include "ace/ACE_export.h"`
`#include "ace/OS.h"`
`#include "ace/Log_Msg.h"`
`#include "ace/Malloc_T.h"`
`#include "ace/Memory_Pool.h"`
`#include "ace/post.h"`

Include dependency graph for Malloc.h:

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

## Compounds
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...
## Defines
#define | ACE_MALLOC_STATS(X)
#define | ACE_MALLOC_PADDING 1
#define | ACE_MALLOC_HEADER_SIZE
#define | ACE_MALLOC_PADDING_SIZE
#define | ACE_CONTROL_BLOCK_SIZE
#define | ACE_CONTROL_BLOCK_ALIGN_LONGS

## Detailed Description

Malloc.h,v 4.78 2002/08/01 16:17:18 bala Exp.

Author:
  Doug Schmidt and Irfan Pyarali

## Define Documentation

#define ACE_CONTROL_BLOCK_ALIGN_LONGS

| Value:
    ((ACE_CONTROL_BLOCK_SIZE % ACE_MALLOC_ALIGN != 0 \
                  ? ACE_MALLOC_ALIGN - (ACE_CONTROL_BLOCK_SIZE % ACE_MALLOC_ALIGN) \
                  : ACE_MALLOC_ALIGN) / int (sizeof (long)))

#define ACE_CONTROL_BLOCK_SIZE

| Value:
    ((int)(sizeof (ACE_Name_Node*) \
                                          + sizeof (ACE_Malloc_Header*) \
                                          + sizeof (int) \
                                          + MAXNAMELEN))

#define ACE_MALLOC_HEADER_SIZE

| Value:
    (ACE_MALLOC_PADDING % ACE_MALLOC_ALIGN == 0 \
                                    ? ACE_MALLOC_PADDING \
                                    : (((ACE_MALLOC_PADDING / ACE_MALLOC_ALIGN) + 1) \
                                       * ACE_MALLOC_ALIGN))

#define ACE_MALLOC_PADDING 1

#define ACE_MALLOC_PADDING_SIZE

| Value:
    ((int) (ACE_MALLOC_HEADER_SIZE - \
                                        (sizeof (ACE_Malloc_Header*) + sizeof (size_t)))\
                                        / (int) sizeof (long))

#define ACE_MALLOC_STATS | ( | X |  | ) |