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);
60 static void *
Alloc(
size_t size);
62 static void *
ReAlloc(
void *vp,
size_t size);
63 static void *
ReAlloc(
void *vp,
size_t size,
size_t oldsize);
64 static char *
ReAllocChar(
char *vp,
size_t size,
size_t oldsize);
75 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 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?
@ kIsOnHeap
object is on heap
static const UInt_t kObjectAllocMemValue
static void UpdateIsOnHeap(volatile const UInt_t &uniqueID, volatile UInt_t &bits)
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 Bool_t FilledByObjectAlloc(volatile const UInt_t *const member)
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