29 typedef void *(*ReAllocFun_t)(
void*,
size_t);
54 static void *
Alloc(
size_t size);
56 static void *
ReAlloc(
void *vp,
size_t size);
57 static void *
ReAlloc(
void *vp,
size_t size,
size_t oldsize);
58 static char *
ReAllocChar(
char *vp,
size_t size,
size_t oldsize);
66 static void EnterStat(
size_t size,
void *p);
static void Dealloc(void *ptr)
De-allocate block of memory, that was allocated via TStorage::Alloc().
void *(* ReAllocFun_t)(void *, size_t)
static const UInt_t kObjectAllocMemValue
static ULong_t GetHeapBegin()
void(* FreeHookFun_t)(void *, void *addr, size_t)
static void * ObjectAlloc(size_t size)
Used to allocate a TObject on the heap (via TObject::operator new()).
static ULong_t GetHeapEnd()
static ReAllocCFun_t fgReAllocCHook
static void AddToHeap(ULong_t begin, ULong_t end)
add a range to the heap
#define ClassDef(name, id)
static char * ReAllocChar(char *vp, size_t size, size_t oldsize)
Reallocate (i.e.
static void * fgFreeHookData
void *(* ReAllocCFun_t)(void *, size_t, size_t)
static Bool_t fgHasCustomNewDelete
static size_t GetMaxBlockSize()
static void * GetFreeHookData()
return static free hook data
static FreeHookFun_t GetFreeHook()
static void EnableStatistics(int size=-1, int ix=-1)
Enable memory usage statistics gathering.
static Bool_t HasCustomNewDelete()
return the has custom delete flag
static void SetCustomNewDelete()
set the has custom delete flag
static FreeHookFun_t fgFreeHook
static void SetReAllocHooks(ReAllocFun_t func1, ReAllocCFun_t func2)
Set a custom ReAlloc handlers.
static void * Alloc(size_t size)
Allocate a block of memory, that later can be resized using TStorage::ReAlloc().
static void SetFreeHook(FreeHookFun_t func, void *data)
Set a free handler.
static Bool_t IsOnHeap(void *p)
is object at p in the heap?
double func(double *x, double *p)
static void * ReAlloc(void *vp, size_t size)
Reallocate (i.e.
typedef void((*Func_t)())
static void RemoveStat(void *p)
Register a memory free operation.
static void EnterStat(size_t size, void *p)
Register a memory allocation operation.
static void SetMaxBlockSize(size_t size)
static void * ObjectAllocArray(size_t size)
Used to allocate array of TObject on the heap (via TObject::operator new[]()).
static Bool_t FilledByObjectAlloc(UInt_t *member)
static ReAllocFun_t fgReAllocHook
static size_t fgMaxBlockSize
static void ObjectDealloc(void *vp)
Used to deallocate a TObject on the heap (via TObject::operator delete()).
static void PrintStatistics()
Print memory usage statistics.
static Int_t * ReAllocInt(Int_t *vp, size_t size, size_t oldsize)
Reallocate (i.e.