sqlite3GlobalConfig 13069 ext/sqlite3/libsqlite/sqlite3.c nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( sqlite3GlobalConfig 13557 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bLocaltimeFault ) pX = 0; sqlite3GlobalConfig 13564 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bLocaltimeFault ) return 1; sqlite3GlobalConfig 14777 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 14830 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 15073 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 15187 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 sqlite3GlobalConfig 15264 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 15283 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 15305 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 15635 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ sqlite3GlobalConfig 15966 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.pHeap ){ sqlite3GlobalConfig 15972 ext/sqlite3/libsqlite/sqlite3.c mem3.aPool = (Mem3Block *)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 15973 ext/sqlite3/libsqlite/sqlite3.c mem3.nPool = (sqlite3GlobalConfig.nHeap / sizeof(Mem3Block)) - 2; sqlite3GlobalConfig 16373 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 16573 ext/sqlite3/libsqlite/sqlite3.c nByte = sqlite3GlobalConfig.nHeap; sqlite3GlobalConfig 16574 ext/sqlite3/libsqlite/sqlite3.c zByte = (u8*)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 16578 ext/sqlite3/libsqlite/sqlite3.c nMinLog = memsys5Log(sqlite3GlobalConfig.mnReq); sqlite3GlobalConfig 16604 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 ){ sqlite3GlobalConfig 16718 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ sqlite3GlobalConfig 16725 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 16727 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 16737 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexInit(); sqlite3GlobalConfig 16752 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.mutex.xMutexEnd ){ sqlite3GlobalConfig 16753 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexEnd(); sqlite3GlobalConfig 16770 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 16774 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 16778 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 16786 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexFree(p); sqlite3GlobalConfig 16796 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexEnter(p); sqlite3GlobalConfig 16807 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexTry(p); sqlite3GlobalConfig 16820 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexLeave(p); sqlite3GlobalConfig 16830 ext/sqlite3/libsqlite/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); sqlite3GlobalConfig 16833 ext/sqlite3/libsqlite/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); sqlite3GlobalConfig 18166 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ){ sqlite3GlobalConfig 18170 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 18173 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pScratch && sqlite3GlobalConfig.szScratch>=100 sqlite3GlobalConfig 18174 ext/sqlite3/libsqlite/sqlite3.c && sqlite3GlobalConfig.nScratch>0 ){ sqlite3GlobalConfig 18177 ext/sqlite3/libsqlite/sqlite3.c sz = ROUNDDOWN8(sqlite3GlobalConfig.szScratch); sqlite3GlobalConfig 18178 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = sz; sqlite3GlobalConfig 18179 ext/sqlite3/libsqlite/sqlite3.c pSlot = (ScratchFreeslot*)sqlite3GlobalConfig.pScratch; sqlite3GlobalConfig 18180 ext/sqlite3/libsqlite/sqlite3.c n = sqlite3GlobalConfig.nScratch; sqlite3GlobalConfig 18191 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pScratch = 0; sqlite3GlobalConfig 18192 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = 0; sqlite3GlobalConfig 18193 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nScratch = 0; sqlite3GlobalConfig 18195 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512 sqlite3GlobalConfig 18196 ext/sqlite3/libsqlite/sqlite3.c || sqlite3GlobalConfig.nPage<1 ){ sqlite3GlobalConfig 18197 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pPage = 0; sqlite3GlobalConfig 18198 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage = 0; sqlite3GlobalConfig 18199 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nPage = 0; sqlite3GlobalConfig 18201 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 18217 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xShutdown ){ sqlite3GlobalConfig 18218 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xShutdown(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 18274 ext/sqlite3/libsqlite/sqlite3.c nFull = sqlite3GlobalConfig.m.xRoundup(n); sqlite3GlobalConfig 18285 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 18289 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 18316 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18321 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 18363 ext/sqlite3/libsqlite/sqlite3.c if( mem0.nScratchFree && sqlite3GlobalConfig.szScratch>=n ){ sqlite3GlobalConfig 18371 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18378 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 18408 ext/sqlite3/libsqlite/sqlite3.c if( p>=sqlite3GlobalConfig.pScratch && p<mem0.pScratchEnd ){ sqlite3GlobalConfig 18416 ext/sqlite3/libsqlite/sqlite3.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); sqlite3GlobalConfig 18424 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18430 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18433 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18457 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 18467 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 18478 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18482 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18485 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18536 ext/sqlite3/libsqlite/sqlite3.c nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); sqlite3GlobalConfig 18539 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18549 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 18552 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 18560 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 19770 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xLog(sqlite3GlobalConfig.pLogArg, iErrCode, sqlite3GlobalConfig 19779 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xLog ){ sqlite3GlobalConfig 21585 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 21599 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 34817 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 0); sqlite3GlobalConfig 34827 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 34833 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.pcache.xInit(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 34836 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache.xShutdown ){ sqlite3GlobalConfig 34838 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xShutdown(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 34877 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 34907 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.pcache.xCreate(nByte, pCache->bPurgeable); sqlite3GlobalConfig 34911 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xCachesize(p, pCache->nMax); sqlite3GlobalConfig 34917 ext/sqlite3/libsqlite/sqlite3.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, eCreate); sqlite3GlobalConfig 34943 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache), sqlite3GlobalConfig 34952 ext/sqlite3/libsqlite/sqlite3.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, 2); sqlite3GlobalConfig 35025 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 1); sqlite3GlobalConfig 35083 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xRekey(pCache->pCache, p, p->pgno, newPgno); sqlite3GlobalConfig 35120 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xTruncate(pCache->pCache, pgno+1); sqlite3GlobalConfig 35129 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 35241 ext/sqlite3/libsqlite/sqlite3.c nPage = sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache); sqlite3GlobalConfig 35261 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xCachesize(pCache->pCache, mxPage); sqlite3GlobalConfig 35800 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 35845 ext/sqlite3/libsqlite/sqlite3.c int separateCache = sqlite3GlobalConfig.bCoreMutex>0; sqlite3GlobalConfig 47586 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.sharedCacheEnabled = enable; sqlite3GlobalConfig 49400 ext/sqlite3/libsqlite/sqlite3.c if( SQLITE_THREADSAFE && sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 63612 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 63615 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 68855 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 108046 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_OK; sqlite3GlobalConfig 108067 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMutexInit = 1; sqlite3GlobalConfig 108068 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 108072 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMallocInit = 1; sqlite3GlobalConfig 108073 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 108074 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pInitMutex = sqlite3GlobalConfig 108076 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex && !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 108082 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nRefInitMutex++; sqlite3GlobalConfig 108106 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_enter(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 108107 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit==0 && sqlite3GlobalConfig.inProgress==0 ){ sqlite3GlobalConfig 108109 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.inProgress = 1; sqlite3GlobalConfig 108112 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit==0 ){ sqlite3GlobalConfig 108116 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 1; sqlite3GlobalConfig 108120 ext/sqlite3/libsqlite/sqlite3.c sqlite3PCacheBufferSetup( sqlite3GlobalConfig.pPage, sqlite3GlobalConfig 108121 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage); sqlite3GlobalConfig 108122 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isInit = 1; sqlite3GlobalConfig 108124 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.inProgress = 0; sqlite3GlobalConfig 108126 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_leave(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 108132 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nRefInitMutex--; sqlite3GlobalConfig 108133 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.nRefInitMutex<=0 ){ sqlite3GlobalConfig 108134 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); sqlite3GlobalConfig 108135 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_free(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 108136 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pInitMutex = 0; sqlite3GlobalConfig 108171 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ){ sqlite3GlobalConfig 108174 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isInit = 0; sqlite3GlobalConfig 108176 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit ){ sqlite3GlobalConfig 108178 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 0; sqlite3GlobalConfig 108180 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 108182 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMallocInit = 0; sqlite3GlobalConfig 108184 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isMutexInit ){ sqlite3GlobalConfig 108186 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMutexInit = 0; sqlite3GlobalConfig 108207 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_MISUSE_BKPT; sqlite3GlobalConfig 108218 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 0; sqlite3GlobalConfig 108219 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 108225 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 108226 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 108231 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 108232 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 1; sqlite3GlobalConfig 108237 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex = *va_arg(ap, sqlite3_mutex_methods*); sqlite3GlobalConfig 108242 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_mutex_methods*) = sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 108250 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *va_arg(ap, sqlite3_mem_methods*); sqlite3GlobalConfig 108255 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ) sqlite3MemSetDefault(); sqlite3GlobalConfig 108256 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_mem_methods*) = sqlite3GlobalConfig.m; sqlite3GlobalConfig 108261 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bMemstat = va_arg(ap, int); sqlite3GlobalConfig 108266 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pScratch = va_arg(ap, void*); sqlite3GlobalConfig 108267 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = va_arg(ap, int); sqlite3GlobalConfig 108268 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nScratch = va_arg(ap, int); sqlite3GlobalConfig 108273 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pPage = va_arg(ap, void*); sqlite3GlobalConfig 108274 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage = va_arg(ap, int); sqlite3GlobalConfig 108275 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nPage = va_arg(ap, int); sqlite3GlobalConfig 108281 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache = *va_arg(ap, sqlite3_pcache_methods*); sqlite3GlobalConfig 108286 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 108289 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_pcache_methods*) = sqlite3GlobalConfig.pcache; sqlite3GlobalConfig 108296 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pHeap = va_arg(ap, void*); sqlite3GlobalConfig 108297 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nHeap = va_arg(ap, int); sqlite3GlobalConfig 108298 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = va_arg(ap, int); sqlite3GlobalConfig 108300 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.mnReq<1 ){ sqlite3GlobalConfig 108301 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = 1; sqlite3GlobalConfig 108302 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.mnReq>(1<<12) ){ sqlite3GlobalConfig 108304 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = (1<<12); sqlite3GlobalConfig 108307 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pHeap==0 ){ sqlite3GlobalConfig 108313 ext/sqlite3/libsqlite/sqlite3.c memset(&sqlite3GlobalConfig.m, 0, sizeof(sqlite3GlobalConfig.m)); sqlite3GlobalConfig 108320 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys3(); sqlite3GlobalConfig 108323 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys5(); sqlite3GlobalConfig 108331 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szLookaside = va_arg(ap, int); sqlite3GlobalConfig 108332 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nLookaside = va_arg(ap, int); sqlite3GlobalConfig 108346 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xLog = va_arg(ap, LOGFUNC_t); sqlite3GlobalConfig 108347 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pLogArg = va_arg(ap, void*); sqlite3GlobalConfig 108352 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bOpenUri = va_arg(ap, int); sqlite3GlobalConfig 109756 ext/sqlite3/libsqlite/sqlite3.c if( ((flags & SQLITE_OPEN_URI) || sqlite3GlobalConfig.bOpenUri) sqlite3GlobalConfig 109986 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 109993 ext/sqlite3/libsqlite/sqlite3.c isThreadsafe = sqlite3GlobalConfig.bFullMutex; sqlite3GlobalConfig 109997 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.sharedCacheEnabled ){ sqlite3GlobalConfig 110185 ext/sqlite3/libsqlite/sqlite3.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, sqlite3GlobalConfig 110186 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nLookaside); sqlite3GlobalConfig 110193 ext/sqlite3/libsqlite/sqlite3.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); sqlite3GlobalConfig 110399 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 110406 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 110413 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 110835 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bLocaltimeFault = va_arg(ap, int);