void FixedMalloc::DestroyInstance() { for (int i=0; i<kNumSizeClasses; i++) m_allocs[i].Destroy(); VMPI_lockDestroy(&m_largeAllocInfoLock); #if defined DEBUG && !defined AVMPLUS_SAMPLER VMPI_lockDestroy(&m_largeObjectLock); #endif FixedMalloc::instance = NULL; }
void VMPI_spyTeardown() { VMPI_lockDestroy(&lock); spyRunning = false; }
void FixedAllocSafe::Destroy() { FixedAlloc::Destroy(); VMPI_lockDestroy(&m_spinlock); }
FixedAllocSafe::~FixedAllocSafe() { // Don't call Destroy, because it calls FixedAlloc::Destroy, which is also // called from FixedAlloc::~FixedAlloc, which we just called. VMPI_lockDestroy(&m_spinlock); }
FixedAllocSafe::~FixedAllocSafe() { VMPI_lockDestroy(&m_spinlock); }