Generated on Thu Mar 22 10:39:48 2012 for Gecode by doxygen 1.6.3

memory-config.hpp File Reference

(Revision: 8706)

Go to the source code of this file.

Namespaces

namespace  Gecode
 

Gecode toplevel namespace


namespace  Gecode::MemoryConfig
 

Parameters defining memory management policy for spaces.


Defines

#define GECODE_MEMORY_ALIGNMENT   8
 Memory alignment.

Functions

void Gecode::MemoryConfig::align (size_t &s)
 Align size s to the required alignment.

Variables

const unsigned int Gecode::MemoryConfig::n_hc_cache = 4*4
 How many heap chunks should be cached at most.
const size_t Gecode::MemoryConfig::hcsz_min = 2 * 1024
 Minimal size of a heap chunk requested from the OS.
const size_t Gecode::MemoryConfig::hcsz_max = 64 * 1024
 Maximal size of a heap chunk requested from the OS.
const int Gecode::MemoryConfig::hcsz_inc_ratio = 8
 Increment ratio for chunk size.
const int Gecode::MemoryConfig::hcsz_dec_ratio = 2
 Decrement ratio for chunk size.
const int Gecode::MemoryConfig::fl_unit_size = ((sizeof(void*) == 4) ? 2 : 3)
 Unit size for free lists.
const int Gecode::MemoryConfig::fl_size_min = ((sizeof(void*) == 4) ? 2 : 2)
 Minimal size for free list element.
const int Gecode::MemoryConfig::fl_size_max = ((sizeof(void*) == 4) ? 3 : 3)
 Maximal size for free list element.
const int Gecode::MemoryConfig::fl_refill = 8
 Number of free lists elements to allocate.
const size_t Gecode::MemoryConfig::region_area_size = 32 * 1024
 Size of region area.

Define Documentation

#define GECODE_MEMORY_ALIGNMENT   8

Memory alignment.

Memory alignment is controlled by the macro GECODE_MEMORY_ALIGNMENT. If it is not defined, it assumed to be 8. Otherwise, the defined value is used.

Definition at line 126 of file memory-config.hpp.