#include <TStorage.h>
Public Member Functions | |
virtual | ~TStorage () |
virtual | ~TStorage () |
Static Public Member Functions | |
static ULong_t | GetHeapBegin () |
static ULong_t | GetHeapEnd () |
static FreeHookFun_t | GetFreeHook () |
static void * | GetFreeHookData () |
static size_t | GetMaxBlockSize () |
static void * | Alloc (size_t size) |
static void | Dealloc (void *ptr) |
static void * | ReAlloc (void *vp, size_t size) |
static void * | ReAlloc (void *vp, size_t size, size_t oldsize) |
static char * | ReAllocChar (char *vp, size_t size, size_t oldsize) |
static Int_t * | ReAllocInt (Int_t *vp, size_t size, size_t oldsize) |
static void * | ObjectAlloc (size_t size) |
static void * | ObjectAlloc (size_t size, void *vp) |
static void | ObjectDealloc (void *vp) |
static void | ObjectDealloc (void *vp, void *ptr) |
static void | EnterStat (size_t size, void *p) |
static void | RemoveStat (void *p) |
static void | PrintStatistics () |
static void | SetMaxBlockSize (size_t size) |
static void | SetFreeHook (FreeHookFun_t func, void *data) |
static void | SetReAllocHooks (ReAllocFun_t func1, ReAllocCFun_t func2) |
static void | SetCustomNewDelete () |
static void | EnableStatistics (int size=-1, int ix=-1) |
static Bool_t | HasCustomNewDelete () |
static void | AddToHeap (ULong_t begin, ULong_t end) |
static Bool_t | IsOnHeap (void *p) |
static ULong_t | GetHeapBegin () |
static ULong_t | GetHeapEnd () |
static FreeHookFun_t | GetFreeHook () |
static void * | GetFreeHookData () |
static size_t | GetMaxBlockSize () |
static void * | Alloc (size_t size) |
static void | Dealloc (void *ptr) |
static void * | ReAlloc (void *vp, size_t size) |
static void * | ReAlloc (void *vp, size_t size, size_t oldsize) |
static char * | ReAllocChar (char *vp, size_t size, size_t oldsize) |
static Int_t * | ReAllocInt (Int_t *vp, size_t size, size_t oldsize) |
static void * | ObjectAlloc (size_t size) |
static void * | ObjectAlloc (size_t size, void *vp) |
static void | ObjectDealloc (void *vp) |
static void | ObjectDealloc (void *vp, void *ptr) |
static void | EnterStat (size_t size, void *p) |
static void | RemoveStat (void *p) |
static void | PrintStatistics () |
static void | SetMaxBlockSize (size_t size) |
static void | SetFreeHook (FreeHookFun_t func, void *data) |
static void | SetReAllocHooks (ReAllocFun_t func1, ReAllocCFun_t func2) |
static void | SetCustomNewDelete () |
static void | EnableStatistics (int size=-1, int ix=-1) |
static Bool_t | HasCustomNewDelete () |
static void | AddToHeap (ULong_t begin, ULong_t end) |
static Bool_t | IsOnHeap (void *p) |
Static Private Attributes | |
static ULong_t | fgHeapBegin |
static ULong_t | fgHeapEnd |
static size_t | fgMaxBlockSize |
static FreeHookFun_t | fgFreeHook |
static void * | fgFreeHookData |
static ReAllocFun_t | fgReAllocHook |
static ReAllocCFun_t | fgReAllocCHook |
static Bool_t | fgHasCustomNewDelete |
static void * | fgFreeHookData |
Definition at line 34 of file TStorage.h.
virtual TStorage::~TStorage | ( | ) | [inline, virtual] |
Definition at line 47 of file TStorage.h.
virtual TStorage::~TStorage | ( | ) | [inline, virtual] |
Definition at line 47 of file TStorage.h.
ULong_t TStorage::GetHeapBegin | ( | ) | [static] |
Definition at line 447 of file TStorage.cxx.
References fgHeapBegin.
Referenced by G__G__Base2_73_0_1(), and G__setup_memfuncTStorage().
ULong_t TStorage::GetHeapEnd | ( | ) | [static] |
Definition at line 454 of file TStorage.cxx.
References fgHeapEnd.
Referenced by G__G__Base2_73_0_2(), and G__setup_memfuncTStorage().
FreeHookFun_t TStorage::GetFreeHook | ( | ) | [inline, static] |
Definition at line 95 of file TStorage.h.
References fgFreeHook.
Referenced by G__G__Base2_73_0_3(), and G__setup_memfuncTStorage().
void * TStorage::GetFreeHookData | ( | ) | [static] |
Definition at line 461 of file TStorage.cxx.
References fgFreeHookData.
Referenced by G__G__Base2_73_0_4(), and G__setup_memfuncTStorage().
size_t TStorage::GetMaxBlockSize | ( | ) | [inline, static] |
Definition at line 91 of file TStorage.h.
References fgMaxBlockSize.
Referenced by EnterStat(), G__G__Base2_73_0_5(), and G__setup_memfuncTStorage().
void * TStorage::Alloc | ( | size_t | size | ) | [static] |
Definition at line 147 of file TStorage.cxx.
References Fatal(), gSpaceErr, and vp.
Referenced by G__G__Base2_73_0_6(), G__setup_memfuncTStorage(), TOrdCollection::Init(), TObjArray::Init(), TGWin32::TGWin32(), and TGX11::TGX11().
void TStorage::Dealloc | ( | void * | ptr | ) | [static] |
Definition at line 166 of file TStorage.cxx.
Referenced by TOrdCollection::Clear(), TGWin32::CloseDisplay(), TOrdCollection::Delete(), G__G__Base2_73_0_7(), G__setup_memfuncTStorage(), TObjArray::Init(), TGX11::~TGX11(), TObjArray::~TObjArray(), and TOrdCollection::~TOrdCollection().
void * TStorage::ReAlloc | ( | void * | vp, | |
size_t | size | |||
) | [static] |
Definition at line 178 of file TStorage.cxx.
References Fatal(), fgHasCustomNewDelete, fgReAllocHook, gGlobalMutex, gSpaceErr, TROOT::MemCheck(), memmove, R__LOCKGUARD, and vp.
Referenced by TGX11::AddPixmap(), TGWin32::AddPixmap(), TGX11::AddWindow(), TGWin32::AddWindow(), CollectImageColors(), TGX11::CollectImageColors(), TObjArray::Expand(), TBranch::ExpandBasketArrays(), G__G__Base2_73_0_8(), G__G__Base2_73_0_9(), G__setup_memfuncTStorage(), TGX11::InitWindow(), TGWin32::InitWindow(), TGX11::OpenPixmap(), TGWin32::OpenPixmap(), and TOrdCollection::SetCapacity().
Definition at line 211 of file TStorage.cxx.
References Fatal(), fgHasCustomNewDelete, fgReAllocCHook, gGlobalMutex, gSpaceErr, TROOT::MemCheck(), R__LOCKGUARD, and vp.
Definition at line 252 of file TStorage.cxx.
References Fatal(), gGlobalMutex, gSpaceErr, R__LOCKGUARD, and vp.
Referenced by G__G__Base2_73_0_10(), G__setup_memfuncTStorage(), TPDF::PrintFast(), and TPDF::PrintStr().
Definition at line 285 of file TStorage.cxx.
References Fatal(), gGlobalMutex, gSpaceErr, R__LOCKGUARD, and vp.
Referenced by TBranch::ExpandBasketArrays(), G__G__Base2_73_0_11(), G__setup_memfuncTStorage(), TSystem::Load(), and TBasket::Update().
void * TStorage::ObjectAlloc | ( | size_t | size | ) | [static] |
Definition at line 318 of file TStorage.cxx.
References AddToHeap(), gGlobalMutex, and R__LOCKGUARD.
Referenced by G__G__Base2_73_0_12(), G__G__Base2_73_0_13(), G__setup_memfuncTStorage(), TObject::operator new(), TObject::operator new[](), and TClonesArray::operator[]().
void * TStorage::ObjectAlloc | ( | size_t | size, | |
void * | vp | |||
) | [static] |
Definition at line 334 of file TStorage.cxx.
void TStorage::ObjectDealloc | ( | void * | vp | ) | [static] |
Definition at line 344 of file TStorage.cxx.
References gCint, TInterpreter::Getgvp(), gGlobalMutex, PVOID, and R__LOCKGUARD.
Referenced by G__G__Base2_73_0_14(), G__G__Base2_73_0_15(), G__setup_memfuncTStorage(), TObject::operator delete(), and TObject::operator delete[]().
void TStorage::ObjectDealloc | ( | void * | vp, | |
void * | ptr | |||
) | [static] |
Definition at line 362 of file TStorage.cxx.
void TStorage::EnterStat | ( | size_t | size, | |
void * | p | |||
) | [static] |
Definition at line 92 of file TStorage.cxx.
References Fatal(), gAllocated, GetMaxBlockSize(), gMemIndex, gMemSize, malloc(), TMath::Max(), realloc(), and SetMaxBlockSize().
Referenced by G__G__Base2_73_0_16(), and G__setup_memfuncTStorage().
void TStorage::RemoveStat | ( | void * | p | ) | [static] |
Definition at line 124 of file TStorage.cxx.
References gFreed, gFreedTotal, gMemSize, gMemStatistics, gTraceArray, gTraceIndex, i, kObjMaxSize, size, size_t, and storage_size.
Referenced by G__G__Base2_73_0_17(), and G__setup_memfuncTStorage().
void TStorage::PrintStatistics | ( | ) | [static] |
Definition at line 389 of file TStorage.cxx.
References gAllocated, gAllocatedTotal, gFreed, gFreedTotal, gGlobalMutex, gMemSize, gMemStatistics, gTraceArray, gTraceIndex, HasCustomNewDelete(), i, int, kObjMaxSize, Printf(), and R__LOCKGUARD.
Referenced by G__G__Base2_73_0_18(), G__setup_memfuncTStorage(), and TROOT::~TROOT().
void TStorage::SetMaxBlockSize | ( | size_t | size | ) | [inline, static] |
Definition at line 93 of file TStorage.h.
References fgMaxBlockSize.
Referenced by EnterStat(), G__G__Base2_73_0_19(), and G__setup_memfuncTStorage().
void TStorage::SetFreeHook | ( | FreeHookFun_t | func, | |
void * | data | |||
) | [static] |
Definition at line 370 of file TStorage.cxx.
References fgFreeHook, and fgFreeHookData.
Referenced by G__G__Base2_73_0_20(), and G__setup_memfuncTStorage().
void TStorage::SetReAllocHooks | ( | ReAllocFun_t | func1, | |
ReAllocCFun_t | func2 | |||
) | [static] |
Definition at line 379 of file TStorage.cxx.
References fgReAllocCHook, and fgReAllocHook.
Referenced by G__G__Base2_73_0_21(), G__setup_memfuncTStorage(), and TReAllocInit::TReAllocInit().
void TStorage::SetCustomNewDelete | ( | ) | [static] |
Definition at line 475 of file TStorage.cxx.
References fgHasCustomNewDelete, and kTRUE.
Referenced by G__G__Base2_73_0_22(), G__setup_memfuncTStorage(), and operator new().
void TStorage::EnableStatistics | ( | int | size = -1 , |
|
int | ix = -1 | |||
) | [static] |
Definition at line 431 of file TStorage.cxx.
References gMemIndex, gMemSize, gMemStatistics, and kTRUE.
Referenced by G__G__Base2_73_0_23(), G__setup_memfuncTStorage(), and TROOT::InitSystem().
Bool_t TStorage::HasCustomNewDelete | ( | ) | [static] |
Definition at line 468 of file TStorage.cxx.
References fgHasCustomNewDelete.
Referenced by G__G__Base2_73_0_24(), G__setup_memfuncTStorage(), TMapFile::MapToAddress(), and PrintStatistics().
Definition at line 84 of file TStorage.h.
References fgHeapBegin, and fgHeapEnd.
Referenced by G__G__Base2_73_0_25(), G__setup_memfuncTStorage(), and ObjectAlloc().
Bool_t TStorage::IsOnHeap | ( | void * | p | ) | [inline, static] |
Definition at line 88 of file TStorage.h.
References fgHeapBegin, and fgHeapEnd.
Referenced by ClassImp(), G__G__Base2_73_0_26(), G__setup_memfuncTStorage(), TMap::PrintCollectionEntry(), and TObject::TObject().
static ULong_t TStorage::GetHeapBegin | ( | ) | [static] |
static ULong_t TStorage::GetHeapEnd | ( | ) | [static] |
static FreeHookFun_t TStorage::GetFreeHook | ( | ) | [static] |
static void* TStorage::GetFreeHookData | ( | ) | [static] |
static size_t TStorage::GetMaxBlockSize | ( | ) | [static] |
static void* TStorage::Alloc | ( | size_t | size | ) | [static] |
static void TStorage::Dealloc | ( | void * | ptr | ) | [static] |
static void* TStorage::ReAlloc | ( | void * | vp, | |
size_t | size | |||
) | [static] |
static void* TStorage::ObjectAlloc | ( | size_t | size | ) | [static] |
static void* TStorage::ObjectAlloc | ( | size_t | size, | |
void * | vp | |||
) | [static] |
static void TStorage::ObjectDealloc | ( | void * | vp | ) | [static] |
static void TStorage::ObjectDealloc | ( | void * | vp, | |
void * | ptr | |||
) | [static] |
static void TStorage::EnterStat | ( | size_t | size, | |
void * | p | |||
) | [static] |
static void TStorage::RemoveStat | ( | void * | p | ) | [static] |
static void TStorage::PrintStatistics | ( | ) | [static] |
static void TStorage::SetMaxBlockSize | ( | size_t | size | ) | [static] |
static void TStorage::SetFreeHook | ( | FreeHookFun_t | func, | |
void * | data | |||
) | [static] |
static void TStorage::SetReAllocHooks | ( | ReAllocFun_t | func1, | |
ReAllocCFun_t | func2 | |||
) | [static] |
static void TStorage::SetCustomNewDelete | ( | ) | [static] |
static void TStorage::EnableStatistics | ( | int | size = -1 , |
|
int | ix = -1 | |||
) | [static] |
static Bool_t TStorage::HasCustomNewDelete | ( | ) | [static] |
static Bool_t TStorage::IsOnHeap | ( | void * | p | ) | [static] |
static ULong_t TStorage::fgHeapBegin [static, private] |
Definition at line 37 of file TStorage.h.
Referenced by AddToHeap(), GetHeapBegin(), and IsOnHeap().
static ULong_t TStorage::fgHeapEnd [static, private] |
static size_t TStorage::fgMaxBlockSize [static, private] |
static FreeHookFun_t TStorage::fgFreeHook [static, private] |
void * TStorage::fgFreeHookData [static, private] |
static ReAllocFun_t TStorage::fgReAllocHook [static, private] |
static ReAllocCFun_t TStorage::fgReAllocCHook [static, private] |
static Bool_t TStorage::fgHasCustomNewDelete [static, private] |
Definition at line 44 of file TStorage.h.
Referenced by HasCustomNewDelete(), ReAlloc(), and SetCustomNewDelete().
void* TStorage::fgFreeHookData [static, private] |
Definition at line 41 of file TStorage.h.