sqlite3GlobalConfig 15231 ext/sqlite3/libsqlite/sqlite3.c nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( sqlite3GlobalConfig 15769 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bLocaltimeFault ) pX = 0; sqlite3GlobalConfig 15776 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bLocaltimeFault ) return 1; sqlite3GlobalConfig 17141 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 17154 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 17210 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 17226 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 17499 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 17613 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 sqlite3GlobalConfig 17690 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 17709 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 17731 ext/sqlite3/libsqlite/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 18061 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ sqlite3GlobalConfig 18392 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.pHeap ){ sqlite3GlobalConfig 18398 ext/sqlite3/libsqlite/sqlite3.c mem3.aPool = (Mem3Block *)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 18399 ext/sqlite3/libsqlite/sqlite3.c mem3.nPool = (sqlite3GlobalConfig.nHeap / sizeof(Mem3Block)) - 2; sqlite3GlobalConfig 18780 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 18994 ext/sqlite3/libsqlite/sqlite3.c nByte = sqlite3GlobalConfig.nHeap; sqlite3GlobalConfig 18995 ext/sqlite3/libsqlite/sqlite3.c zByte = (u8*)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 18999 ext/sqlite3/libsqlite/sqlite3.c nMinLog = memsys5Log(sqlite3GlobalConfig.mnReq); sqlite3GlobalConfig 19025 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 ){ sqlite3GlobalConfig 19139 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ sqlite3GlobalConfig 19146 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 19148 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 19158 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexInit(); sqlite3GlobalConfig 19173 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.mutex.xMutexEnd ){ sqlite3GlobalConfig 19174 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexEnd(); sqlite3GlobalConfig 19192 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 19196 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 19200 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 19208 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexFree(p); sqlite3GlobalConfig 19218 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexEnter(p); sqlite3GlobalConfig 19229 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexTry(p); sqlite3GlobalConfig 19242 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex.xMutexLeave(p); sqlite3GlobalConfig 19252 ext/sqlite3/libsqlite/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); sqlite3GlobalConfig 19255 ext/sqlite3/libsqlite/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); sqlite3GlobalConfig 20680 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ){ sqlite3GlobalConfig 20684 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 20687 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pScratch && sqlite3GlobalConfig.szScratch>=100 sqlite3GlobalConfig 20688 ext/sqlite3/libsqlite/sqlite3.c && sqlite3GlobalConfig.nScratch>0 ){ sqlite3GlobalConfig 20691 ext/sqlite3/libsqlite/sqlite3.c sz = ROUNDDOWN8(sqlite3GlobalConfig.szScratch); sqlite3GlobalConfig 20692 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = sz; sqlite3GlobalConfig 20693 ext/sqlite3/libsqlite/sqlite3.c pSlot = (ScratchFreeslot*)sqlite3GlobalConfig.pScratch; sqlite3GlobalConfig 20694 ext/sqlite3/libsqlite/sqlite3.c n = sqlite3GlobalConfig.nScratch; sqlite3GlobalConfig 20705 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pScratch = 0; sqlite3GlobalConfig 20706 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = 0; sqlite3GlobalConfig 20707 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nScratch = 0; sqlite3GlobalConfig 20709 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512 sqlite3GlobalConfig 20710 ext/sqlite3/libsqlite/sqlite3.c || sqlite3GlobalConfig.nPage<1 ){ sqlite3GlobalConfig 20711 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pPage = 0; sqlite3GlobalConfig 20712 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage = 0; sqlite3GlobalConfig 20713 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nPage = 0; sqlite3GlobalConfig 20715 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 20733 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xShutdown ){ sqlite3GlobalConfig 20734 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xShutdown(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 20790 ext/sqlite3/libsqlite/sqlite3.c nFull = sqlite3GlobalConfig.m.xRoundup(n); sqlite3GlobalConfig 20801 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 20805 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 20830 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 20835 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc((int)n); sqlite3GlobalConfig 20884 ext/sqlite3/libsqlite/sqlite3.c if( mem0.nScratchFree && sqlite3GlobalConfig.szScratch>=n ){ sqlite3GlobalConfig 20893 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat && p ){ sqlite3GlobalConfig 20927 ext/sqlite3/libsqlite/sqlite3.c if( p>=sqlite3GlobalConfig.pScratch && p<mem0.pScratchEnd ){ sqlite3GlobalConfig 20935 ext/sqlite3/libsqlite/sqlite3.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); sqlite3GlobalConfig 20943 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 20949 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 20952 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 20975 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 20989 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 20996 ext/sqlite3/libsqlite/sqlite3.c return (sqlite3_uint64)sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 21006 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 21010 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 21013 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 21079 ext/sqlite3/libsqlite/sqlite3.c nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes); sqlite3GlobalConfig 21082 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 21090 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 21093 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 21101 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 22385 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xLog(sqlite3GlobalConfig.pLogArg, iErrCode, sqlite3GlobalConfig 22394 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xLog ){ sqlite3GlobalConfig 22690 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.bCoreMutex!=0 ); sqlite3GlobalConfig 22782 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 23473 ext/sqlite3/libsqlite/sqlite3.c int (*xCallback)(int) = sqlite3GlobalConfig.xTestCallback; sqlite3GlobalConfig 24595 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 24609 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 29291 ext/sqlite3/libsqlite/sqlite3.c if( newLimit>sqlite3GlobalConfig.mxMmap ){ sqlite3GlobalConfig 29292 ext/sqlite3/libsqlite/sqlite3.c newLimit = sqlite3GlobalConfig.mxMmap; sqlite3GlobalConfig 30727 ext/sqlite3/libsqlite/sqlite3.c pNew->mmapSizeMax = sqlite3GlobalConfig.szMmap; sqlite3GlobalConfig 34723 ext/sqlite3/libsqlite/sqlite3.c DWORD dwMaximumSize = (DWORD)sqlite3GlobalConfig.nHeap; sqlite3GlobalConfig 36527 ext/sqlite3/libsqlite/sqlite3.c if( newLimit>sqlite3GlobalConfig.mxMmap ){ sqlite3GlobalConfig 36528 ext/sqlite3/libsqlite/sqlite3.c newLimit = sqlite3GlobalConfig.mxMmap; sqlite3GlobalConfig 38075 ext/sqlite3/libsqlite/sqlite3.c pFile->mmapSizeMax = sqlite3GlobalConfig.szMmap; sqlite3GlobalConfig 39365 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xUnpin(p->pCache->pCache, p->pPage, 0); sqlite3GlobalConfig 39394 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache2.xInit==0 ){ sqlite3GlobalConfig 39400 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.pcache2.xInit(sqlite3GlobalConfig.pcache2.pArg); sqlite3GlobalConfig 39403 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache2.xShutdown ){ sqlite3GlobalConfig 39405 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xShutdown(sqlite3GlobalConfig.pcache2.pArg); sqlite3GlobalConfig 39447 ext/sqlite3/libsqlite/sqlite3.c pNew = sqlite3GlobalConfig.pcache2.xCreate( sqlite3GlobalConfig 39452 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xCachesize(pNew, numberOfCachePages(pCache)); sqlite3GlobalConfig 39454 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xDestroy(pCache->pCache); sqlite3GlobalConfig 39510 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.pcache2.xFetch(pCache->pCache, pgno, eCreate); sqlite3GlobalConfig 39552 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache), sqlite3GlobalConfig 39560 ext/sqlite3/libsqlite/sqlite3.c *ppPage = sqlite3GlobalConfig.pcache2.xFetch(pCache->pCache, pgno, 2); sqlite3GlobalConfig 39661 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xUnpin(p->pCache->pCache, p->pPage, 1); sqlite3GlobalConfig 39719 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xRekey(pCache->pCache, p->pPage, p->pgno,newPgno); sqlite3GlobalConfig 39755 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xTruncate(pCache->pCache, pgno+1); sqlite3GlobalConfig 39764 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xDestroy(pCache->pCache); sqlite3GlobalConfig 39874 ext/sqlite3/libsqlite/sqlite3.c return sqlite3GlobalConfig.pcache2.xPagecount(pCache->pCache); sqlite3GlobalConfig 39892 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xCachesize(pCache->pCache, sqlite3GlobalConfig 39901 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2.xShrink(pCache->pCache); sqlite3GlobalConfig 40458 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 40506 ext/sqlite3/libsqlite/sqlite3.c int separateCache = sqlite3GlobalConfig.bCoreMutex>0; sqlite3GlobalConfig 53141 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.sharedCacheEnabled = enable; sqlite3GlobalConfig 55155 ext/sqlite3/libsqlite/sqlite3.c if( SQLITE_THREADSAFE && sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 67339 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xSqllog && v->rc==SQLITE_OK && v->zSql && v->pc>=0 ){ sqlite3GlobalConfig 67343 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xSqllog( sqlite3GlobalConfig 67344 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pSqllogArg, v->db, zExpanded, 1 sqlite3GlobalConfig 70880 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xVdbeBranch==0 ) return; /*NO_TEST*/ sqlite3GlobalConfig 70881 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xVdbeBranch(sqlite3GlobalConfig.pVdbeBranchArg, sqlite3GlobalConfig 77364 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 78846 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3TempInMemory(db) || sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 78888 ext/sqlite3/libsqlite/sqlite3.c u32 szPma = sqlite3GlobalConfig.szPma; sqlite3GlobalConfig 78898 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pScratch==0 ){ sqlite3GlobalConfig 104344 ext/sqlite3/libsqlite/sqlite3.c if( sz<0 ) sz = sqlite3GlobalConfig.szMmap; sqlite3GlobalConfig 121397 ext/sqlite3/libsqlite/sqlite3.c && sqlite3GlobalConfig.bUseCis sqlite3GlobalConfig 128144 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_OK; sqlite3GlobalConfig 128165 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMutexInit = 1; sqlite3GlobalConfig 128166 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 128170 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMallocInit = 1; sqlite3GlobalConfig 128171 ext/sqlite3/libsqlite/sqlite3.c if( !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 128172 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pInitMutex = sqlite3GlobalConfig 128174 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex && !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 128180 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nRefInitMutex++; sqlite3GlobalConfig 128204 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_enter(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 128205 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit==0 && sqlite3GlobalConfig.inProgress==0 ){ sqlite3GlobalConfig 128207 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.inProgress = 1; sqlite3GlobalConfig 128210 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit==0 ){ sqlite3GlobalConfig 128214 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 1; sqlite3GlobalConfig 128218 ext/sqlite3/libsqlite/sqlite3.c sqlite3PCacheBufferSetup( sqlite3GlobalConfig.pPage, sqlite3GlobalConfig 128219 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage); sqlite3GlobalConfig 128220 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isInit = 1; sqlite3GlobalConfig 128225 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.inProgress = 0; sqlite3GlobalConfig 128227 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_leave(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 128233 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nRefInitMutex--; sqlite3GlobalConfig 128234 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.nRefInitMutex<=0 ){ sqlite3GlobalConfig 128235 ext/sqlite3/libsqlite/sqlite3.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); sqlite3GlobalConfig 128236 ext/sqlite3/libsqlite/sqlite3.c sqlite3_mutex_free(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 128237 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pInitMutex = 0; sqlite3GlobalConfig 128289 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ){ sqlite3GlobalConfig 128296 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isInit = 0; sqlite3GlobalConfig 128298 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit ){ sqlite3GlobalConfig 128300 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 0; sqlite3GlobalConfig 128302 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 128304 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMallocInit = 0; sqlite3GlobalConfig 128318 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isMutexInit ){ sqlite3GlobalConfig 128320 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.isMutexInit = 0; sqlite3GlobalConfig 128341 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_MISUSE_BKPT; sqlite3GlobalConfig 128353 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 0; /* Disable mutex on core */ sqlite3GlobalConfig 128354 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; /* Disable mutex on connections */ sqlite3GlobalConfig 128362 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; /* Enable mutex on core */ sqlite3GlobalConfig 128363 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; /* Disable mutex on connections */ sqlite3GlobalConfig 128371 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; /* Enable mutex on core */ sqlite3GlobalConfig 128372 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bFullMutex = 1; /* Enable mutex on connections */ sqlite3GlobalConfig 128379 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mutex = *va_arg(ap, sqlite3_mutex_methods*); sqlite3GlobalConfig 128386 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_mutex_methods*) = sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 128397 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *va_arg(ap, sqlite3_mem_methods*); sqlite3GlobalConfig 128405 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ) sqlite3MemSetDefault(); sqlite3GlobalConfig 128406 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_mem_methods*) = sqlite3GlobalConfig.m; sqlite3GlobalConfig 128413 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bMemstat = va_arg(ap, int); sqlite3GlobalConfig 128421 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pScratch = va_arg(ap, void*); sqlite3GlobalConfig 128422 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szScratch = va_arg(ap, int); sqlite3GlobalConfig 128423 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nScratch = va_arg(ap, int); sqlite3GlobalConfig 128430 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pPage = va_arg(ap, void*); sqlite3GlobalConfig 128431 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPage = va_arg(ap, int); sqlite3GlobalConfig 128432 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nPage = va_arg(ap, int); sqlite3GlobalConfig 128462 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pcache2 = *va_arg(ap, sqlite3_pcache_methods2*); sqlite3GlobalConfig 128470 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pcache2.xInit==0 ){ sqlite3GlobalConfig 128473 ext/sqlite3/libsqlite/sqlite3.c *va_arg(ap, sqlite3_pcache_methods2*) = sqlite3GlobalConfig.pcache2; sqlite3GlobalConfig 128486 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pHeap = va_arg(ap, void*); sqlite3GlobalConfig 128487 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nHeap = va_arg(ap, int); sqlite3GlobalConfig 128488 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = va_arg(ap, int); sqlite3GlobalConfig 128490 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.mnReq<1 ){ sqlite3GlobalConfig 128491 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = 1; sqlite3GlobalConfig 128492 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.mnReq>(1<<12) ){ sqlite3GlobalConfig 128494 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mnReq = (1<<12); sqlite3GlobalConfig 128497 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.pHeap==0 ){ sqlite3GlobalConfig 128506 ext/sqlite3/libsqlite/sqlite3.c memset(&sqlite3GlobalConfig.m, 0, sizeof(sqlite3GlobalConfig.m)); sqlite3GlobalConfig 128512 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys3(); sqlite3GlobalConfig 128515 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys5(); sqlite3GlobalConfig 128523 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szLookaside = va_arg(ap, int); sqlite3GlobalConfig 128524 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nLookaside = va_arg(ap, int); sqlite3GlobalConfig 128538 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xLog = va_arg(ap, LOGFUNC_t); sqlite3GlobalConfig 128539 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pLogArg = va_arg(ap, void*); sqlite3GlobalConfig 128553 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bOpenUri = va_arg(ap, int); sqlite3GlobalConfig 128562 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bUseCis = va_arg(ap, int); sqlite3GlobalConfig 128569 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xSqllog = va_arg(ap, SQLLOGFUNC_t); sqlite3GlobalConfig 128570 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pSqllogArg = va_arg(ap, void *); sqlite3GlobalConfig 128595 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.mxMmap = mxMmap; sqlite3GlobalConfig 128596 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szMmap = szMmap; sqlite3GlobalConfig 128605 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nHeap = va_arg(ap, int); sqlite3GlobalConfig 128611 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.szPma = va_arg(ap, unsigned int); sqlite3GlobalConfig 128994 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xSqllog ){ sqlite3GlobalConfig 128996 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xSqllog(sqlite3GlobalConfig.pSqllogArg, db, 0, 2); sqlite3GlobalConfig 130418 ext/sqlite3/libsqlite/sqlite3.c || sqlite3GlobalConfig.bOpenUri) /* IMP: R-51689-46548 */ sqlite3GlobalConfig 130668 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 130675 ext/sqlite3/libsqlite/sqlite3.c isThreadsafe = sqlite3GlobalConfig.bFullMutex; sqlite3GlobalConfig 130679 ext/sqlite3/libsqlite/sqlite3.c }else if( sqlite3GlobalConfig.sharedCacheEnabled ){ sqlite3GlobalConfig 130728 ext/sqlite3/libsqlite/sqlite3.c db->szMmap = sqlite3GlobalConfig.szMmap; sqlite3GlobalConfig 130890 ext/sqlite3/libsqlite/sqlite3.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, sqlite3GlobalConfig 130891 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.nLookaside); sqlite3GlobalConfig 130899 ext/sqlite3/libsqlite/sqlite3.c || sqlite3GlobalConfig.bFullMutex==0 ); sqlite3GlobalConfig 130912 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.xSqllog ){ sqlite3GlobalConfig 130914 ext/sqlite3/libsqlite/sqlite3.c void *pArg = sqlite3GlobalConfig.pSqllogArg; sqlite3GlobalConfig 130915 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xSqllog(pArg, db, zFilename, 0); sqlite3GlobalConfig 131127 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 131134 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 131141 ext/sqlite3/libsqlite/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 131413 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xTestCallback = va_arg(ap, TESTCALLBACKFUNC_t); sqlite3GlobalConfig 131595 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.bLocaltimeFault = va_arg(ap, int); sqlite3GlobalConfig 131608 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.neverCorrupt = va_arg(ap, int); sqlite3GlobalConfig 131621 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.xVdbeBranch = va_arg(ap,branch_callback); sqlite3GlobalConfig 131622 ext/sqlite3/libsqlite/sqlite3.c sqlite3GlobalConfig.pVdbeBranchArg = va_arg(ap,void*); sqlite3GlobalConfig 131640 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3GlobalConfig.isInit==0 ) rc = SQLITE_ERROR;