Lines Matching refs:reqSize
60 size_t reqSize; /* Requested allocation size. */
69 #define blockReqSize b.reqSize
134 static char * Block2Ptr(Block *blockPtr, int bucket, unsigned int reqSize);
292 unsigned int reqSize)
304 if (((size_t) reqSize) > max - sizeof(Block) - RCHECK) {
323 size = reqSize + sizeof(Block);
331 cachePtr->totalAssigned += reqSize;
343 cachePtr->buckets[bucket].totalAssigned += reqSize;
349 return Block2Ptr(blockPtr, bucket, reqSize);
432 unsigned int reqSize)
441 return TclpAlloc(reqSize);
449 if (((size_t) reqSize) > max - sizeof(Block) - RCHECK) {
467 size = reqSize + sizeof(Block);
480 cachePtr->buckets[bucket].totalAssigned += reqSize;
481 return Block2Ptr(blockPtr, bucket, reqSize);
485 cachePtr->totalAssigned += reqSize;
490 return Block2Ptr(blockPtr, NBUCKETS, reqSize);
497 newPtr = TclpAlloc(reqSize);
499 if (reqSize > blockPtr->blockReqSize) {
500 reqSize = blockPtr->blockReqSize;
502 memcpy(newPtr, ptr, reqSize);
747 unsigned int reqSize)
753 blockPtr->blockReqSize = reqSize;
756 ((unsigned char *)(ptr))[reqSize] = MAGIC;