Searched refs:nAlloc (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/third_party/sqlite/src/src/
H A Dtable.c32 int nAlloc; /* Slots allocated for azResult[] */ member in struct:TabResult
58 if( p->nData + need > p->nAlloc ){
60 p->nAlloc = p->nAlloc*2 + need;
61 azNew = sqlite3_realloc( p->azResult, sizeof(char*)*p->nAlloc );
137 res.nAlloc = 20;
139 res.azResult = sqlite3_malloc(sizeof(char*)*res.nAlloc );
165 if( res.nAlloc>res.nData ){
H A Dmem2.c115 ** nAlloc[i] is the number of allocation attempts of i*8
119 int nAlloc[NCSIZE]; /* Total number of allocations */ member in struct:__anon13788
135 mem.nAlloc[i]++;
502 if( mem.nAlloc[i] ){
504 i*8, mem.nAlloc[i], mem.nCurrent[i], mem.mxCurrent[i]);
507 if( mem.nAlloc[NCSIZE-1] ){
509 NCSIZE*8-8, mem.nAlloc[NCSIZE-1],
522 nTotal += mem.nAlloc[i];
H A Dmem5.c108 u64 nAlloc; /* Total number of calls to malloc */ member in struct:Mem5Global
288 mem5.nAlloc++;
493 int nAlloc = (1<<ii); local
494 if( (iOffset+nAlloc)<=mem5.nBlock ){
497 iOffset += nAlloc;
499 assert((iOffset+nAlloc)>mem5.nBlock);
545 fprintf(out, "mem5.nAlloc = %llu\n", mem5.nAlloc);
H A Dalter.c753 int nAlloc; local
795 nAlloc = (((pNew->nCol-1)/8)*8)+8;
796 assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 );
797 pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc);
H A Dtest_onefile.c120 int nAlloc; member in struct:tmp_file
290 if( (iAmt+iOfst)>pTmp->nAlloc ){
291 int nNew = 2*(iAmt+iOfst+pTmp->nAlloc);
297 pTmp->nAlloc = nNew;
H A Dvdbemem.c729 int nAlloc = nByte; local
731 nAlloc += (enc==SQLITE_UTF8?1:2);
736 if( sqlite3VdbeMemGrow(pMem, nAlloc, 0) ){
739 memcpy(pMem->z, z, nAlloc);
H A DsqliteInt.h1752 int nAlloc; /* Number of entries allocated below */ member in struct:ExprList
1797 int nAlloc; /* Number of entries allocated for a[] below */ member in struct:IdList
1835 i16 nAlloc; /* Number of entries allocated in a[] below */ member in struct:SrcList
2396 int nAlloc; /* Amount of space allocated in zText */ member in struct:StrAccum
H A Dbuild.c3031 pList->nAlloc = 0;
3039 &pList->nAlloc,
3110 if( pSrc->nSrc+nExtra>pSrc->nAlloc ){
3112 int nAlloc = pSrc->nSrc+nExtra; local
3115 sizeof(*pSrc) + (nAlloc-1)*sizeof(pSrc->a[0]) );
3122 pSrc->nAlloc = (u16)nGot;
3188 pList->nAlloc = 1;
H A Dtest1.c790 int nAlloc; /* Space allocated */ member in struct:dstr
800 if( p->nUsed + n + 2 > p->nAlloc ){
802 p->nAlloc = p->nAlloc*2 + n + 200;
803 zNew = sqlite3_realloc(p->z, p->nAlloc);
H A Dresolve.c451 if( pNC->pSrcList && pNC->pSrcList->nAlloc>0 ){
H A Dwhere.c4096 pOrTab->nAlloc = (i16)(nNotReady + 1);
4097 pOrTab->nSrc = pOrTab->nAlloc;
/external/chromium_org/third_party/sqlite/src/test/
H A Dthreadtest1.c63 int nAlloc; /* Number of slots allocated for azElem[] */ member in struct:QueryResult
78 if( pResult->nElem + nArg >= pResult->nAlloc ){
79 if( pResult->nAlloc==0 ){
80 pResult->nAlloc = nArg+1;
82 pResult->nAlloc = pResult->nAlloc*2 + nArg + 1;
84 pResult->azElem = realloc( pResult->azElem, pResult->nAlloc*sizeof(char*));
/external/chromium_org/third_party/sqlite/src/ext/fts3/
H A Dfts3_snippet.c105 int nAlloc; /* Allocated size of buffer z in bytes */ member in struct:StrBuffer
546 if( pStr->n+nAppend+1>=pStr->nAlloc ){
547 int nAlloc = pStr->nAlloc+nAppend+100; local
548 char *zNew = sqlite3_realloc(pStr->z, nAlloc);
553 pStr->nAlloc = nAlloc;
H A Dfts3.c1196 int nAlloc = 0; /* Size of allocated buffer */ local
1243 if( nPrefix+nSuffix>nAlloc ){
1245 nAlloc = (nPrefix+nSuffix) * 2;
1246 zNew = (char *)sqlite3_realloc(zBuffer, nAlloc);
H A Dfts3_write.c1247 int nAlloc = 0; /* Size of allocated array at aElem */ local
1253 if( nElem==nAlloc ){
1255 nAlloc += 16;
1257 aElem, nAlloc*sizeof(Fts3HashElem *)
/external/chromium_org/third_party/sqlite/src/ext/fts1/
H A Dfts1.c1006 int nAlloc; /* Space allocated for aMatch[] */ member in struct:Snippet
2184 if( p->nMatch+1>=p->nAlloc ){
2185 p->nAlloc = p->nAlloc*2 + 10;
2186 p->aMatch = realloc(p->aMatch, p->nAlloc*sizeof(p->aMatch[0]) );
2189 p->nAlloc = 0;
/external/sqlite/dist/orig/
H A Dsqlite3.c10742 i16 nAlloc; /* Number of entries allocated in a[] below */ member in struct:SrcList
11312 int nAlloc; /* Amount of space allocated in zText */ member in struct:StrAccum
15572 ** nAlloc[i] is the number of allocation attempts of i*8
15576 int nAlloc[NCSIZE]; /* Total number of allocations */ member in struct:__anon25823
15592 mem.nAlloc[i]++;
15959 if( mem.nAlloc[i] ){
15961 i*8, mem.nAlloc[i], mem.nCurrent[i], mem.mxCurrent[i]);
15964 if( mem.nAlloc[NCSIZE-1] ){
15966 NCSIZE*8-8, mem.nAlloc[NCSIZE-1],
15979 nTotal += mem.nAlloc[
16784 u64 nAlloc; /* Total number of calls to malloc */ member in struct:Mem5Global
17169 int nAlloc = (1<<ii); local
59079 int nAlloc = nByte; local
71760 int nAlloc; /* Bytes of space at aAlloc */ member in struct:VdbeSorterIter
79184 int nAlloc; local
84367 int nAlloc = pSrc->nSrc+nExtra; local
99147 int nAlloc; /* Slots allocated for azResult[] */ member in struct:TabResult
118230 int nAlloc = 0; /* Size of allocated buffer */ local
126624 int nAlloc = 0; /* Size of allocated array at aElem */ local
128715 int nAlloc; /* Allocated size of buffer z in bytes */ member in struct:StrBuffer
129106 int nAlloc = pStr->nAlloc+nAppend+100; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c10742 i16 nAlloc; /* Number of entries allocated in a[] below */ member in struct:SrcList
11312 int nAlloc; /* Amount of space allocated in zText */ member in struct:StrAccum
15572 ** nAlloc[i] is the number of allocation attempts of i*8
15576 int nAlloc[NCSIZE]; /* Total number of allocations */ member in struct:__anon25848
15592 mem.nAlloc[i]++;
15959 if( mem.nAlloc[i] ){
15961 i*8, mem.nAlloc[i], mem.nCurrent[i], mem.mxCurrent[i]);
15964 if( mem.nAlloc[NCSIZE-1] ){
15966 NCSIZE*8-8, mem.nAlloc[NCSIZE-1],
15979 nTotal += mem.nAlloc[
16784 u64 nAlloc; /* Total number of calls to malloc */ member in struct:Mem5Global
17169 int nAlloc = (1<<ii); local
59107 int nAlloc = nByte; local
71788 int nAlloc; /* Bytes of space at aAlloc */ member in struct:VdbeSorterIter
79220 int nAlloc; local
84403 int nAlloc = pSrc->nSrc+nExtra; local
99183 int nAlloc; /* Slots allocated for azResult[] */ member in struct:TabResult
118266 int nAlloc = 0; /* Size of allocated buffer */ local
126670 int nAlloc = 0; /* Size of allocated array at aElem */ local
128761 int nAlloc; /* Allocated size of buffer z in bytes */ member in struct:StrBuffer
129152 int nAlloc = pStr->nAlloc+nAppend+100; local
[all...]
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c10112 int nAlloc; /* Number of entries allocated below */ member in struct:ExprList
10157 int nAlloc; /* Number of entries allocated for a[] below */ member in struct:IdList
10195 i16 nAlloc; /* Number of entries allocated in a[] below */ member in struct:SrcList
10756 int nAlloc; /* Amount of space allocated in zText */ member in struct:StrAccum
14708 ** nAlloc[i] is the number of allocation attempts of i*8
14712 int nAlloc[NCSIZE]; /* Total number of allocations */ member in struct:__anon13768
14728 mem.nAlloc[i]++;
15095 if( mem.nAlloc[i] ){
15097 i*8, mem.nAlloc[i], mem.nCurrent[i], mem.mxCurrent[i]);
15100 if( mem.nAlloc[NCSIZ
15920 u64 nAlloc; /* Total number of calls to malloc */ member in struct:Mem5Global
16305 int nAlloc = (1<<ii); local
56873 int nAlloc = nByte; local
75426 int nAlloc; local
80128 int nAlloc = pSrc->nSrc+nExtra; local
94626 int nAlloc; /* Slots allocated for azResult[] */ member in struct:TabResult
114436 int nAlloc = 0; /* Size of allocated buffer */ local
121343 int nAlloc = 0; /* Size of allocated array at aElem */ local
122928 int nAlloc; /* Allocated size of buffer z in bytes */ member in struct:StrBuffer
123370 int nAlloc = pStr->nAlloc+nAppend+100; local
[all...]
/external/chromium_org/third_party/sqlite/src/ext/fts2/
H A Dfts2.c1926 int nAlloc; /* Space allocated for aMatch[] */ member in struct:Snippet
3227 if( p->nMatch+1>=p->nAlloc ){
3228 p->nAlloc = p->nAlloc*2 + 10;
3229 p->aMatch = sqlite3_realloc(p->aMatch, p->nAlloc*sizeof(p->aMatch[0]) );
3232 p->nAlloc = 0;

Completed in 470 milliseconds