config.h File Reference

Configuration. More...

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

Go to the source code of this file.

Defines

#define PAGESIZE   (1 << 13)
 The mininum size memory block in the OS.
#define tm_PAGESIZE   PAGESIZE
 The size of blocks allocated from the OS.
#define tm_TIME_STAT   1
 If true, enable timing stats.
#define tm_name_GUARD   0
 If true, enable name guards in internal structures.
#define tm_block_GUARD   0
 If true, enable data corruption guards in internal structures.
#define tm_GC_THRESHOLD   3 / 4
#define tm_node_HDR_SIZE   sizeof(struct tm_node)
 Size of tm_node headers.
#define tm_block_HDR_SIZE   sizeof(struct tm_block)
 Size of tm_block headers.
#define tm_block_SIZE_MAX   (tm_block_SIZE - tm_block_HDR_SIZE)
 The maxinum size tm_node that can be allocated from a single tm_block.
#define tm_block_SIZE_MASK   ~(((unsigned long) tm_block_SIZE) - 1)
 Mask to align tm_block pointers.
#define tm_page_SIZE_MASK   ~(((unsigned long) tm_page_SIZE) - 1)
 Mask to align page pointers.

Enumerations

enum  tm_config {
  tm_ALLOC_ALIGN = 8, tm_PTR_ALIGN = __alignof(void*), tm_block_SIZE = tm_PAGESIZE, tm_page_SIZE = tm_PAGESIZE,
  tm_address_range_k = 1UL << (sizeof(void*) * 8 - 10), tm_block_N_MAX = sizeof(void*) / tm_block_SIZE
}
 

Configuration constants.

More...

Detailed Description

Configuration.

Id
internal.h,v 1.17 2009-08-01 10:47:31 stephens Exp

Definition in file config.h.


Generated on Mon Jan 25 06:33:12 2010 for TM(tredmill) by  doxygen 1.6.1