24 #include "RConfigure.h" 28 typedef void *(*ReAllocFun_t)(
void*, size_t);
29 typedef void *(*ReAllocCFun_t)(
void*, size_t, size_t);
30 typedef 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);
static void Dealloc(void *ptr)
De-allocate block of memory, that was allocated via TStorage::Alloc().
void *(* ReAllocFun_t)(void *, size_t)
Namespace for new ROOT classes and functions.
static const UInt_t kObjectAllocMemValue
static ULong_t GetHeapBegin()
#define R__INTENTIONALLY_UNINIT_BEGIN
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.
R__EXTERN void * gMmallocDesc
static void * fgFreeHookData
#define R__INTENTIONALLY_UNINIT_END
static Bool_t fgHasCustomNewDelete
static size_t GetMaxBlockSize()
static void * GetFreeHookData()
return static free hook data
static FreeHookFun_t GetFreeHook()
static Bool_t FilledByObjectAlloc(volatile UInt_t *member)
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.
bool(void *) FreeIfTMapFile_t
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?
R__EXTERN FreeIfTMapFile_t * gFreeIfTMapFile
void *(* ReAllocCFun_t)(void *, size_t, size_t)
static void * ReAlloc(void *vp, size_t size)
Reallocate (i.e.
void(* FreeHookFun_t)(void *, void *addr, size_t)
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 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.