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