Lines Matching refs:nAlloc

16459   u32 nAlloc;      /* Number of entries allocated in a[] below */  member
17118 u32 nAlloc; /* Amount of space allocated in zText */ member
21795 int nAlloc[NCSIZE]; /* Total number of allocations */ member
21811 mem.nAlloc[i]++; in adjustStats()
22178 if( mem.nAlloc[i] ){ in sqlite3MemdebugDump()
22180 i*8, mem.nAlloc[i], mem.nCurrent[i], mem.mxCurrent[i]); in sqlite3MemdebugDump()
22183 if( mem.nAlloc[NCSIZE-1] ){ in sqlite3MemdebugDump()
22185 NCSIZE*8-8, mem.nAlloc[NCSIZE-1], in sqlite3MemdebugDump()
22198 nTotal += mem.nAlloc[i]; in sqlite3MemdebugMallocCount()
23006 u64 nAlloc; /* Total number of calls to malloc */ member
23165 mem5.nAlloc++; in memsys5MallocUnsafe()
23385 int nAlloc = (1<<ii); in memsys5Init() local
23386 if( (iOffset+nAlloc)<=mem5.nBlock ){ in memsys5Init()
23389 iOffset += nAlloc; in memsys5Init()
23391 assert((iOffset+nAlloc)>mem5.nBlock); in memsys5Init()
23437 fprintf(out, "mem5.nAlloc = %llu\n", mem5.nAlloc); in sqlite3Memsys5Dump()
25997 p->nAlloc = 0;
26630 assert( p->nChar+(i64)N >= p->nAlloc ); /* Only called if really needed */
26637 N = p->nAlloc - p->nChar - 1;
26654 p->nAlloc = (int)szNew;
26657 zNew = sqlite3DbRealloc(p->db, zOld, p->nAlloc);
26659 zNew = sqlite3_realloc64(zOld, p->nAlloc);
26665 p->nAlloc = sqlite3DbMallocSize(p->db, zNew);
26681 if( p->nChar+(i64)N >= p->nAlloc && (N = sqlite3StrAccumEnlarge(p, N))<=0 ){
26711 assert( p->accError==0 || p->nAlloc==0 );
26712 if( p->nChar+N >= p->nAlloc ){
26785 p->nAlloc = n;
30032 int nAlloc = (pIn ? pIn[0]*2 : 10) + nInt;
30033 VList *pOut = sqlite3DbRealloc(db, pIn, nAlloc*sizeof(int));
30037 pIn[0] = nAlloc;
72155 int nAlloc = nByte;
72157 nAlloc += (enc==SQLITE_UTF8?1:2);
72162 testcase( nAlloc==0 );
72163 testcase( nAlloc==31 );
72164 testcase( nAlloc==32 );
72165 if( sqlite3VdbeMemClearAndResize(pMem, MAX(nAlloc,32)) ){
72168 memcpy(pMem->z, z, nAlloc);
79857 out.nAlloc = 0;
88170 int nAlloc; /* Bytes of space at aAlloc */
88355 if( p->nAlloc<nByte ){
88357 int nNew = MAX(128, p->nAlloc*2);
88361 p->nAlloc = nNew;
88551 assert( pReadr->aAlloc==0 && pReadr->nAlloc==0 );
91749 if( pNC->pSrcList && pNC->pSrcList->nAlloc>0 ){
94091 pNew->nSrc = pNew->nAlloc = p->nSrc;
98772 int nAlloc;
98814 nAlloc = (((pNew->nCol-1)/8)*8)+8;
98815 assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 );
98816 pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc);
105315 if( (u32)pSrc->nSrc+nExtra>pSrc->nAlloc ){
105317 int nAlloc = pSrc->nSrc*2+nExtra;
105320 sizeof(*pSrc) + (nAlloc-1)*sizeof(pSrc->a[0]) );
105327 pSrc->nAlloc = nGot;
105394 pList->nAlloc = 1;
124783 u32 nAlloc; /* Slots allocated for azResult[] */
124809 if( p->nData + need > p->nAlloc ){
124811 p->nAlloc = p->nAlloc*2 + need;
124812 azNew = sqlite3_realloc64( p->azResult, sizeof(char*)*p->nAlloc );
124891 res.nAlloc = 20;
124893 res.azResult = sqlite3_malloc64(sizeof(char*)*res.nAlloc );
124919 if( res.nAlloc>res.nData ){
131029 pOrTab->nAlloc = (u8)(nNotReady + 1);
131030 pOrTab->nSrc = pOrTab->nAlloc;
150637 i64 nAlloc = 0; /* Size of allocated buffer */
150679 if( (i64)nPrefix+nSuffix>nAlloc ){
150681 nAlloc = ((i64)nPrefix+nSuffix) * 2;
150682 zNew = (char *)sqlite3_realloc64(zBuffer, nAlloc);
160615 int nAlloc = 0; /* Size of allocated array at aElem */
160621 if( nElem==nAlloc ){
160623 nAlloc += 16;
160625 aElem, nAlloc*sizeof(Fts3HashElem *)
162552 int nAlloc; /* Allocated size of a[] (nAlloc>=n) */
162611 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
162612 int nAlloc = nMin;
162613 char *a = (char *)sqlite3_realloc(pBlob->a, nAlloc);
162615 pBlob->nAlloc = nAlloc;
162773 assert( pNode->block.nAlloc>=p->nNodeSize );
162853 assert( pNode->n<=pNode->nAlloc );
162966 assert( *pRc || pNode->block.nAlloc==0 );
162967 assert( *pRc || pNode->key.nAlloc==0 );
163369 int nAlloc = 0; /* Allocated size of aIdx[] */
163379 if( nIdx>=nAlloc ){
163381 nAlloc += 16;
163382 aNew = sqlite3_realloc(aIdx, nAlloc*sizeof(int));
163421 assert( pNode->nAlloc>=1+sqlite3Fts3VarintLen(iChild) );
163424 assert( pNode->nAlloc>=1 );
163476 assert( pNew->n<=pNew->nAlloc );
163746 const int nAlloc = sizeof(*pCsr) + sizeof(*pFilter) + sizeof(*pWriter);
163747 pWriter = (IncrmergeWriter *)sqlite3_malloc(nAlloc);
163810 memset(pWriter, 0, nAlloc);
164730 int nAlloc; /* Allocated size of buffer z in bytes */
165216 if( pStr->n+nAppend+1>=pStr->nAlloc ){
165217 int nAlloc = pStr->nAlloc+nAppend+100;
165218 char *zNew = sqlite3_realloc(pStr->z, nAlloc);
165223 pStr->nAlloc = nAlloc;
165225 assert( pStr->z!=0 && (pStr->nAlloc >= pStr->n+nAppend+1) );
166416 int nAlloc; /* space allocated at zToken */
166662 if( (zOut-pCsr->zToken)>=(pCsr->nAlloc-4) ){
166663 char *zNew = sqlite3_realloc(pCsr->zToken, pCsr->nAlloc+64);
166667 pCsr->nAlloc += 64;
178856 int nAlloc; /* Size of allocation containing aBuf */
180589 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
180591 int nNew = p->nAlloc ? p->nAlloc : 128;
180601 p->nAlloc = nNew;
183720 u64 nAlloc; /* Bytes of storage available in zBuf[] */
183778 u32 nAlloc; /* Number of slots of aNode[] allocated */
183805 p->nAlloc = sizeof(p->zSpace);
183840 u64 nTotal = N<p->nAlloc ? p->nAlloc*2 : p->nAlloc+N+10;
183860 p->nAlloc = nTotal;
183867 if( (N+p->nUsed >= p->nAlloc) && jsonGrow(p,N)!=0 ) return;
183876 if( (p->nUsed + N >= p->nAlloc) && jsonGrow(p, N) ) return;
183886 if( p->nUsed>=p->nAlloc && jsonGrow(p,1)!=0 ) return;
183907 if( (N+p->nUsed+2 >= p->nAlloc) && jsonGrow(p,N+2)!=0 ) return;
183913 if( (p->nUsed+N+3-i > p->nAlloc) && jsonGrow(p,N+3-i)!=0 ) return;
183930 if( (p->nUsed+N+7+i > p->nAlloc) && jsonGrow(p,N+7-i)!=0 ) return;
183941 assert( p->nUsed<p->nAlloc );
184023 pParse->nAlloc = 0;
184301 assert( pParse->nNode>=pParse->nAlloc );
184303 nNew = pParse->nAlloc*2 + 10;
184309 pParse->nAlloc = nNew;
184311 assert( pParse->nNode<pParse->nAlloc );
184327 if( pParse->nNode>=pParse->nAlloc ){
191254 int nAlloc = 4;
191263 if( nIter==nAlloc ){
191264 int nByte = sizeof(Fts5PoslistReader) * nAlloc * 2;
191271 nAlloc = nAlloc*2;
193812 int nAlloc; /* Total size of allocation */
194025 p->nAlloc = nByte;
194060 if( (p->nAlloc - p->nData) < (9 + 4 + 1 + 3 + 5) ){
194061 int nNew = p->nAlloc * 2;
194066 pNew->nAlloc = nNew;
194073 assert( (p->nAlloc - p->nData) >= (9 + 4 + 1 + 3 + 5) );
194963 int nAlloc = sizeof(Fts5Data) + nByte + FTS5_DATA_PADDING;
194964 pRet = (Fts5Data*)sqlite3_malloc(nAlloc);