Lines Matching refs:nsRecyclingAllocator
40 * nsRecyclingAllocator
46 #include "nsRecyclingAllocator.h"
58 nsRecyclingAllocator::nsRecycleTimerCallback(nsITimer *aTimer, void *aClosure)
60 nsRecyclingAllocator *obj = (nsRecyclingAllocator *) aClosure;
85 nsRecyclingAllocator::nsRecyclingAllocator(PRUint32 nbucket, PRUint32 recycleAfter, const char *id) :
101 nsRecyclingAllocator::Init(PRUint32 nbucket, PRUint32 recycleAfter, const char *id)
140 nsRecyclingAllocator::~nsRecyclingAllocator()
173 nsRecyclingAllocator::Malloc(PRSize bytes, PRBool zeroit)
218 NS_ASSERTION(mRecycleTimer, "nsRecyclingAllocator: Creating timer failed.\n");
231 nsRecyclingAllocator::Free(void *ptr)
247 PR_snprintf(buf, sizeof(buf), "nsRecyclingAllocator(%s) FAILOVER 0x%p (%d) - %d allocations, %d max\n",
266 nsRecyclingAllocator::FreeUnusedBuckets()
269 printf("DEBUG: nsRecyclingAllocator(%s) FreeUnusedBuckets: ", mId);
308 nsRecyclingAllocator::Block*
309 nsRecyclingAllocator::FindFreeBlock(PRSize bytes)
364 nsRecyclingAllocator::AddToFreeList(Block* block)
421 nsRecyclingAllocator::Free(ptr);
427 return nsRecyclingAllocator::Init((PRUint32) nbuckets, (PRUint32) recycleAfter, id);