Generated on Sat Feb 7 2015 02:01:34 for Gecode by doxygen 1.8.9.1
memory-config.hpp File Reference

(Revision: 13825)

Go to the source code of this file.

Namespaces

 Gecode
 Gecode toplevel namespace
 
 Gecode::MemoryConfig
 Parameters defining memory management policy for spaces.
 

Macros

#define GECODE_MEMORY_ALIGNMENT   8
 Memory alignment. More...
 

Functions

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

Variables

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

Macro Definition 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 129 of file memory-config.hpp.