Skip to content
Snippets Groups Projects
Commit 8d673ae1 authored by Robert Kloefkorn's avatar Robert Kloefkorn
Browse files

small change.

parent 7530b017
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,12 @@
// MyAlloc initialize flag
bool MyAlloc :: _initialized = false;
const size_t MyAlloc :: MAX_HOLD_ADD = 40000 ; // max MAX_HOLD_ADD Objekte werden gespeichert
const double MyAlloc :: MAX_HOLD_MULT = 0.25 ; // max das MAX_HOLD_MULT-fache der momentan
// aktiven Objekte werden gespeichert
// if true objects could be freeed
bool MyAlloc :: _freeAllowed = true ;
#if ONLY_MSPACES
#warning "Using DL malloc"
#include "malloc.c"
......@@ -14,12 +20,6 @@ static void* ALUGridMemorySpace = 0 ;
static size_t ALUGridMemSpaceAllocated = 0;
#else
const size_t MyAlloc :: MAX_HOLD_ADD = 40000 ; // max MAX_HOLD_ADD Objekte werden gespeichert
const double MyAlloc :: MAX_HOLD_MULT = 0.25 ; // max das MAX_HOLD_MULT-fache der momentan
// aktiven Objekte werden gespeichert
// if true objects could be freeed
bool MyAlloc :: _freeAllowed = true ;
// class to store items of same size in a stack
// also number of used items outside is stored
class AllocEntry {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment