24#include "RConfigure.h"
28typedef void *(*ReAllocFun_t)(
void*, size_t);
29typedef void *(*ReAllocCFun_t)(
void*, size_t, size_t);
30typedef char *(*ReAllocCharFun_t)(
char*, size_t, 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);
69 static void EnterStat(
size_t size,
void *p);
#define R__INTENTIONALLY_UNINIT_END
#define R__INTENTIONALLY_UNINIT_BEGIN
#define ClassDef(name, id)
void *(* ReAllocCFun_t)(void *, size_t, size_t)
void *(* ReAllocFun_t)(void *, size_t)
void(* FreeHookFun_t)(void *, void *addr, size_t)
typedef void((*Func_t)())
static ReAllocCFun_t fgReAllocCHook
static void RemoveStat(void *p)
Register a memory free operation.
static void * Alloc(size_t size)
Allocate a block of memory, that later can be resized using TStorage::ReAlloc().
static Bool_t fgHasCustomNewDelete
static char * ReAllocChar(char *vp, size_t size, size_t oldsize)
Reallocate (i.e.
static FreeHookFun_t fgFreeHook
static Bool_t HasCustomNewDelete()
return the has custom delete flag
static void EnterStat(size_t size, void *p)
Register a memory allocation operation.
static ULong_t GetHeapBegin()
static Bool_t FilledByObjectAlloc(volatile UInt_t *member)
static void ObjectDealloc(void *vp)
Used to deallocate a TObject on the heap (via TObject::operator delete()).
static void SetFreeHook(FreeHookFun_t func, void *data)
Set a free handler.
static void SetCustomNewDelete()
set the has custom delete flag
static void AddToHeap(ULong_t begin, ULong_t end)
add a range to the heap
static ULong_t GetHeapEnd()
static void * GetFreeHookData()
return static free hook data
static void * ReAlloc(void *vp, size_t size)
Reallocate (i.e.
static void SetMaxBlockSize(size_t size)
static void * fgFreeHookData
static Bool_t IsOnHeap(void *p)
is object at p in the heap?
static const UInt_t kObjectAllocMemValue
static void Dealloc(void *ptr)
De-allocate block of memory, that was allocated via TStorage::Alloc().
static size_t fgMaxBlockSize
static Int_t * ReAllocInt(Int_t *vp, size_t size, size_t oldsize)
Reallocate (i.e.
static void SetReAllocHooks(ReAllocFun_t func1, ReAllocCFun_t func2)
Set a custom ReAlloc handlers.
static void * ObjectAllocArray(size_t size)
Used to allocate array of TObject on the heap (via TObject::operator new[]()).
static void EnableStatistics(int size=-1, int ix=-1)
Enable memory usage statistics gathering.
static ReAllocFun_t fgReAllocHook
static size_t GetMaxBlockSize()
static void * ObjectAlloc(size_t size)
Used to allocate a TObject on the heap (via TObject::operator new()).
static void PrintStatistics()
Print memory usage statistics.
static FreeHookFun_t GetFreeHook()
R__EXTERN FreeIfTMapFile_t * gFreeIfTMapFile
R__EXTERN void * gMmallocDesc
bool(void *) FreeIfTMapFile_t
Namespace for new ROOT classes and functions.