Beispiel #1
0
    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;
    }
Beispiel #2
0
void VMPI_spyTeardown()
{
	VMPI_lockDestroy(&lock);
	spyRunning = false;
}
Beispiel #3
0
 void FixedAllocSafe::Destroy()
 {
     FixedAlloc::Destroy();
     VMPI_lockDestroy(&m_spinlock);
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
	FixedAllocSafe::~FixedAllocSafe()
	{
		VMPI_lockDestroy(&m_spinlock);
	}