Pin
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions | Variables
bigarray.cpp File Reference
#include "level_base.H"
#include <sys/types.h>
#include "my_unistd.H"
#include "pin_mmap.H"

Functions

LOCALFUN INT32 LEVEL_BASE::MEGA (INT32 v)
 
LOCALFUN INT32 LEVEL_BASE::KILO (INT32 v)
 
LOCALVAR STAT_NORM LEVEL_BASE::StatStripeBytes ("mem","bytes","stripe","",&StatRawMmapBytes)
 
LOCALVAR STAT_UINT64 LEVEL_BASE::STAT_ArrayBaseAlloc ("pin","array_base","alloc","")
 
LOCALVAR STAT_UINT64 LEVEL_BASE::STAT_ArrayBaseFree ("pin","array_base","free","")
 

Variables

LOCALCONST INT32 LEVEL_BASE::MEMORY_CHUNK_ALLOCATION_SIZE = GetMemoryAllocationGranularity()
 

Detailed Description

This module contains routines and classes for the memory management of large arrays When changing this code, keep in mind that is supposed to work in both 32bit and 64bit environments!

TODO: when reserving a new memory chunk we could probe whether the area is available