Line | Source | Count |
1 | | - |
2 | typedef struct PCache1 PCache1; | - |
3 | typedef struct PgHdr1 PgHdr1; | - |
4 | typedef struct PgFreeslot PgFreeslot; | - |
5 | typedef struct PGroup PGroup; | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | struct PgHdr1 { | - |
14 | sqlite3_pcache_page page; | - |
15 | unsigned int iKey; | - |
16 | u8 isBulkLocal; | - |
17 | u8 isAnchor; | - |
18 | PgHdr1 *pNext; | - |
19 | PCache1 *pCache; | - |
20 | PgHdr1 *pLruNext; | - |
21 | PgHdr1 *pLruPrev; | - |
22 | }; | - |
23 | struct PGroup { | - |
24 | sqlite3_mutex *mutex; | - |
25 | unsigned int nMaxPage; | - |
26 | unsigned int nMinPage; | - |
27 | unsigned int mxPinned; | - |
28 | unsigned int nPurgeable; | - |
29 | PgHdr1 lru; | - |
30 | }; | - |
31 | struct PCache1 { | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | PGroup *pGroup; | - |
39 | unsigned int *pnPurgeable; | - |
40 | int szPage; | - |
41 | int szExtra; | - |
42 | int szAlloc; | - |
43 | int bPurgeable; | - |
44 | unsigned int nMin; | - |
45 | unsigned int nMax; | - |
46 | unsigned int n90pct; | - |
47 | unsigned int iMaxKey; | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | unsigned int nRecyclable; | - |
53 | unsigned int nPage; | - |
54 | unsigned int nHash; | - |
55 | PgHdr1 **apHash; | - |
56 | PgHdr1 *pFree; | - |
57 | void *pBulk; | - |
58 | }; | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | struct PgFreeslot { | - |
65 | PgFreeslot *pNext; | - |
66 | }; | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | static struct PCacheGlobal { | - |
72 | PGroup grp; | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | int isInit; | - |
80 | int separateCache; | - |
81 | int nInitPage; | - |
82 | int szSlot; | - |
83 | int nSlot; | - |
84 | int nReserve; | - |
85 | void *pStart, *pEnd; | - |
86 | | - |
87 | sqlite3_mutex *mutex; | - |
88 | PgFreeslot *pFree; | - |
89 | int nFreeSlot; | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | int bUnderPressure; | - |
95 | } pcache1_g; | - |
96 | void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){ | - |
97 | if( (TRUE | evaluated 529 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 1 time by 1 test |
pcache1_g).isInitTRUE | evaluated 529 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 1 time by 1 test |
){ | 1-529 |
98 | PgFreeslot *p; | - |
99 | if( pBuf==0TRUE | evaluated 523 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 6 times by 1 test |
) sz = n = 0;executed 523 times by 438 tests: sz = n = 0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 6-523 |
100 | if( n==0TRUE | evaluated 523 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 6 times by 1 test |
) sz = 0;executed 523 times by 438 tests: sz = 0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 6-523 |
101 | sz = ((sz)&~7); | - |
102 | (pcache1_g).szSlot = sz; | - |
103 | (pcache1_g).nSlot = (pcache1_g).nFreeSlot = n; | - |
104 | (pcache1_g).nReserve = n>90TRUE | evaluated 1 time by 1 test | FALSE | evaluated 528 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
? 10 : (n/10 + 1); | 1-528 |
105 | (pcache1_g).pStart = pBuf; | - |
106 | (pcache1_g).pFree = 0; | - |
107 | (pcache1_g).bUnderPressure = 0; | - |
108 | while( n--TRUE | evaluated 260 times by 1 test | FALSE | evaluated 529 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ | 260-529 |
109 | p = (PgFreeslot*)pBuf; | - |
110 | p->pNext = (pcache1_g).pFree; | - |
111 | (pcache1_g).pFree = p; | - |
112 | pBuf = (void*)&((char*)pBuf)[sz]; | - |
113 | }executed 260 times by 1 test: end of block | 260 |
114 | (pcache1_g).pEnd = pBuf; | - |
115 | }executed 529 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 529 |
116 | }executed 530 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 530 |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | static int pcache1InitBulk(PCache1 *pCache){ | - |
123 | i64 szBulk; | - |
124 | char *zBulk; | - |
125 | if( (TRUE | evaluated 419 times by 1 test | FALSE | evaluated 81849 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
pcache1_g).nInitPage==0TRUE | evaluated 419 times by 1 test | FALSE | evaluated 81849 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
) returnexecuted 419 times by 1 test: return 0; 0;executed 419 times by 1 test: return 0; | 419-81849 |
126 | | - |
127 | if( pCache->nMax<3TRUE | evaluated 242 times by 1 test | FALSE | evaluated 81607 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
) returnexecuted 242 times by 1 test: return 0; 0;executed 242 times by 1 test: return 0; | 242-81607 |
128 | sqlite3BeginBenignMalloc(); | - |
129 | if( (TRUE | evaluated 81607 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | never evaluated |
pcache1_g).nInitPage>0TRUE | evaluated 81607 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | never evaluated |
){ | 0-81607 |
130 | szBulk = pCache->szAlloc * (i64)(pcache1_g).nInitPage; | - |
131 | }executed 81607 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
else{ | 81607 |
132 | szBulk = -1024 * (i64)(pcache1_g).nInitPage; | - |
133 | } never executed: end of block | 0 |
134 | if( szBulk > pCache->szAlloc*(i64)pCache->nMaxTRUE | evaluated 9 times by 1 test | FALSE | evaluated 81598 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
){ | 9-81598 |
135 | szBulk = pCache->szAlloc*(i64)pCache->nMax; | - |
136 | }executed 9 times by 1 test: end of block | 9 |
137 | zBulk = pCache->pBulk = sqlite3Malloc( szBulk ); | - |
138 | sqlite3EndBenignMalloc(); | - |
139 | if( zBulkTRUE | evaluated 81591 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 16 times by 1 test |
){ | 16-81591 |
140 | int nBulk = sqlite3MallocSize(zBulk)/pCache->szAlloc; | - |
141 | do{ | - |
142 | PgHdr1 *pX = (PgHdr1*)&zBulk[pCache->szPage]; | - |
143 | pX->page.pBuf = zBulk; | - |
144 | pX->page.pExtra = &pX[1]; | - |
145 | pX->isBulkLocal = 1; | - |
146 | pX->isAnchor = 0; | - |
147 | pX->pNext = pCache->pFree; | - |
148 | pCache->pFree = pX; | - |
149 | zBulk += pCache->szAlloc; | - |
150 | }executed 1631730 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
while( --TRUE | evaluated 1550139 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 81591 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
nBulkTRUE | evaluated 1550139 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 81591 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
); | 81591-1631730 |
151 | }executed 81591 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 81591 |
152 | returnexecuted 81607 times by 435 tests: return pCache->pFree!=0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pCache->pFree!=0;executed 81607 times by 435 tests: return pCache->pFree!=0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 81607 |
153 | } | - |
154 | static void *pcache1Alloc(int nByte){ | - |
155 | void *p = 0; | - |
156 | | - |
157 | ((void) (0)) | - |
158 | ; | - |
159 | if( nByte<=(pcache1_g).szSlotTRUE | evaluated 2132 times by 1 test | FALSE | evaluated 1754078 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ | 2132-1754078 |
160 | sqlite3_mutex_enter((pcache1_g).mutex); | - |
161 | p = (PgHdr1 *)(pcache1_g).pFree; | - |
162 | if( pTRUE | evaluated 2131 times by 1 test | FALSE | evaluated 1 time by 1 test |
){ | 1-2131 |
163 | (pcache1_g).pFree = (pcache1_g).pFree->pNext; | - |
164 | (pcache1_g).nFreeSlot--; | - |
165 | (pcache1_g).bUnderPressure = (pcache1_g).nFreeSlot<(pcache1_g).nReserve; | - |
166 | | - |
167 | ((void) (0)) | - |
168 | ; | - |
169 | sqlite3StatusHighwater(7, nByte); | - |
170 | sqlite3StatusUp(1, 1); | - |
171 | }executed 2131 times by 1 test: end of block | 2131 |
172 | sqlite3_mutex_leave((pcache1_g).mutex); | - |
173 | }executed 2132 times by 1 test: end of block | 2132 |
174 | if( p==0TRUE | evaluated 1754079 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 2131 times by 1 test |
){ | 2131-1754079 |
175 | | - |
176 | | - |
177 | | - |
178 | p = sqlite3Malloc(nByte); | - |
179 | | - |
180 | if( pTRUE | evaluated 1754049 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 30 times by 1 test |
){ | 30-1754049 |
181 | int sz = sqlite3MallocSize(p); | - |
182 | sqlite3_mutex_enter((pcache1_g).mutex); | - |
183 | sqlite3StatusHighwater(7, nByte); | - |
184 | sqlite3StatusUp(2, sz); | - |
185 | sqlite3_mutex_leave((pcache1_g).mutex); | - |
186 | }executed 1754049 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 1754049 |
187 | | - |
188 | ; | - |
189 | }executed 1754079 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 1754079 |
190 | returnexecuted 1756210 times by 438 tests: return p; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
p;executed 1756210 times by 438 tests: return p; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 1756210 |
191 | } | - |
192 | | - |
193 | | - |
194 | | - |
195 | | - |
196 | static void pcache1Free(void *p){ | - |
197 | if( p==0TRUE | evaluated 101802 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 1712084 times by 401 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
|
) return;executed 101802 times by 438 tests: return; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 101802-1712084 |
198 | if( (((TRUE | evaluated 1711155 times by 401 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
| FALSE | evaluated 929 times by 1 test |
uptr)(p)>=(uptr)((pcache1_g).pStart))TRUE | evaluated 1711155 times by 401 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
| FALSE | evaluated 929 times by 1 test |
&&((TRUE | evaluated 2131 times by 1 test | FALSE | evaluated 1709024 times by 401 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
|
uptr)(p)<(uptr)((pcache1_g).pEnd))TRUE | evaluated 2131 times by 1 test | FALSE | evaluated 1709024 times by 401 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
|
) ){ | 929-1711155 |
199 | PgFreeslot *pSlot; | - |
200 | sqlite3_mutex_enter((pcache1_g).mutex); | - |
201 | sqlite3StatusDown(1, 1); | - |
202 | pSlot = (PgFreeslot*)p; | - |
203 | pSlot->pNext = (pcache1_g).pFree; | - |
204 | (pcache1_g).pFree = pSlot; | - |
205 | (pcache1_g).nFreeSlot++; | - |
206 | (pcache1_g).bUnderPressure = (pcache1_g).nFreeSlot<(pcache1_g).nReserve; | - |
207 | | - |
208 | ((void) (0)) | - |
209 | ; | - |
210 | sqlite3_mutex_leave((pcache1_g).mutex); | - |
211 | }executed 2131 times by 1 test: end of block else{ | 2131 |
212 | | - |
213 | ((void) (0)) | - |
214 | ; | - |
215 | ; | - |
216 | | - |
217 | { | - |
218 | int nFreed = 0; | - |
219 | nFreed = sqlite3MallocSize(p); | - |
220 | sqlite3_mutex_enter((pcache1_g).mutex); | - |
221 | sqlite3StatusDown(2, nFreed); | - |
222 | sqlite3_mutex_leave((pcache1_g).mutex); | - |
223 | } | - |
224 | | - |
225 | sqlite3_free(p); | - |
226 | }executed 1709953 times by 401 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (14)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- Self test (145)
- Self test (146)
- Self test (147)
- Self test (148)
- Self test (149)
- Self test (15)
- ...
| 1709953 |
227 | } | - |
228 | static PgHdr1 *pcache1AllocPage(PCache1 *pCache, int benignMalloc){ | - |
229 | PgHdr1 *p = 0; | - |
230 | void *pPg; | - |
231 | | - |
232 | | - |
233 | ((void) (0)) | - |
234 | ; | - |
235 | if( pCache->pFreeTRUE | evaluated 378860 times by 432 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 920876 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
|| (pCache->nPage==0TRUE | evaluated 82268 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 838608 times by 333 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
|
&& pcache1InitBulk(pCache)TRUE | evaluated 81591 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 677 times by 1 test |
) ){ | 677-920876 |
236 | p = pCache->pFree; | - |
237 | pCache->pFree = p->pNext; | - |
238 | p->pNext = 0; | - |
239 | }executed 460451 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
else{ | 460451 |
240 | if( benignMallocTRUE | evaluated 292501 times by 332 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
| FALSE | evaluated 546784 times by 4 testsEvaluated by:- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
|
){ sqlite3BeginBenignMalloc(); }executed 292501 times by 332 tests: end of block Executed by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
| 292501-546784 |
241 | pPg = pcache1Alloc(pCache->szAlloc); | - |
242 | p = (PgHdr1 *)&((u8 *)pPg)[pCache->szPage]; | - |
243 | | - |
244 | if( benignMallocTRUE | evaluated 292501 times by 332 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
| FALSE | evaluated 546784 times by 4 testsEvaluated by:- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
|
){ sqlite3EndBenignMalloc(); }executed 292501 times by 332 tests: end of block Executed by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
| 292501-546784 |
245 | | - |
246 | | - |
247 | | - |
248 | if( pPg==0TRUE | evaluated 8 times by 1 test | FALSE | evaluated 839277 times by 333 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
|
) returnexecuted 8 times by 1 test: return 0; 0;executed 8 times by 1 test: return 0; | 8-839277 |
249 | p->page.pBuf = pPg; | - |
250 | p->page.pExtra = &p[1]; | - |
251 | p->isBulkLocal = 0; | - |
252 | p->isAnchor = 0; | - |
253 | }executed 839277 times by 333 tests: end of block Executed by:- Self test (100)
- Self test (101)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- Self test (139)
- Self test (140)
- Self test (141)
- Self test (142)
- Self test (143)
- Self test (144)
- ...
| 839277 |
254 | (*pCache->pnPurgeable)++; | - |
255 | returnexecuted 1299728 times by 435 tests: return p; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
p;executed 1299728 times by 435 tests: return p; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1299728 |
256 | } | - |
257 | | - |
258 | | - |
259 | | - |
260 | | - |
261 | static void pcache1FreePage(PgHdr1 *p){ | - |
262 | PCache1 *pCache; | - |
263 | | - |
264 | ((void) (0)) | - |
265 | ; | - |
266 | pCache = p->pCache; | - |
267 | | - |
268 | ((void) (0)) | - |
269 | ; | - |
270 | if( p->isBulkLocalTRUE | evaluated 453324 times by 91 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (3)
- Self test (30)
- ...
| FALSE | evaluated 795939 times by 7 testsEvaluated by:- Self test (101)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
|
){ | 453324-795939 |
271 | p->pNext = pCache->pFree; | - |
272 | pCache->pFree = p; | - |
273 | }executed 453324 times by 91 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (3)
- Self test (30)
- ...
else{ | 453324 |
274 | pcache1Free(p->page.pBuf); | - |
275 | | - |
276 | | - |
277 | | - |
278 | }executed 795939 times by 7 tests: end of block Executed by:- Self test (101)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
| 795939 |
279 | (*pCache->pnPurgeable)--; | - |
280 | }executed 1249263 times by 91 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (3)
- Self test (30)
- ...
| 1249263 |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | | - |
286 | | - |
287 | void *sqlite3PageMalloc(int sz){ | - |
288 | returnexecuted 916925 times by 438 tests: return pcache1Alloc(sz); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
pcache1Alloc(sz);executed 916925 times by 438 tests: return pcache1Alloc(sz); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 916925 |
289 | } | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | void sqlite3PageFree(void *p){ | - |
295 | pcache1Free(p); | - |
296 | }executed 1017947 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 1017947 |
297 | static int pcache1UnderMemoryPressure(PCache1 *pCache){ | - |
298 | if( (TRUE | evaluated 6873 times by 1 test | FALSE | evaluated 2132251 times by 400 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- ...
|
pcache1_g).nSlotTRUE | evaluated 6873 times by 1 test | FALSE | evaluated 2132251 times by 400 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- ...
|
&& (TRUE | evaluated 6131 times by 1 test | FALSE | evaluated 742 times by 1 test |
pCache->szPage+pCache->szExtra)<=(pcache1_g).szSlotTRUE | evaluated 6131 times by 1 test | FALSE | evaluated 742 times by 1 test |
){ | 742-2132251 |
299 | returnexecuted 6131 times by 1 test: return (pcache1_g).bUnderPressure; (pcache1_g).bUnderPressure;executed 6131 times by 1 test: return (pcache1_g).bUnderPressure; | 6131 |
300 | }else{ | - |
301 | returnexecuted 2132993 times by 400 tests: return sqlite3HeapNearlyFull(); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- ...
sqlite3HeapNearlyFull();executed 2132993 times by 400 tests: return sqlite3HeapNearlyFull(); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- ...
| 2132993 |
302 | } | - |
303 | } | - |
304 | static void pcache1ResizeHash(PCache1 *p){ | - |
305 | PgHdr1 **apNew; | - |
306 | unsigned int nNew; | - |
307 | unsigned int i; | - |
308 | | - |
309 | | - |
310 | ((void) (0)) | - |
311 | ; | - |
312 | | - |
313 | nNew = p->nHash*2; | - |
314 | if( nNew<256TRUE | evaluated 96049 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 833 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
|
){ | 833-96049 |
315 | nNew = 256; | - |
316 | }executed 96049 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96049 |
317 | | - |
318 | | - |
319 | ((void) (0)) | - |
320 | ; | - |
321 | if( p->nHashTRUE | evaluated 833 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 96049 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ sqlite3BeginBenignMalloc(); }executed 833 times by 14 tests: end of block Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 833-96049 |
322 | apNew = (PgHdr1 **)sqlite3MallocZero(sizeof(PgHdr1 *)*nNew); | - |
323 | if( p->nHashTRUE | evaluated 833 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 96049 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ sqlite3EndBenignMalloc(); }executed 833 times by 14 tests: end of block Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 833-96049 |
324 | | - |
325 | ((void) (0)) | - |
326 | ; | - |
327 | if( apNewTRUE | evaluated 96868 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 14 times by 1 test |
){ | 14-96868 |
328 | for(i=0; i<p->nHashTRUE | evaluated 408064 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 96868 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
; i++){ | 96868-408064 |
329 | PgHdr1 *pPage; | - |
330 | PgHdr1 *pNext = p->apHash[i]; | - |
331 | while( (TRUE | evaluated 408064 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 408064 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
|
pPage = pNext)!=0TRUE | evaluated 408064 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 408064 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
|
){ | 408064 |
332 | unsigned int h = pPage->iKey % nNew; | - |
333 | pNext = pPage->pNext; | - |
334 | pPage->pNext = apNew[h]; | - |
335 | apNew[h] = pPage; | - |
336 | }executed 408064 times by 14 tests: end of block Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 408064 |
337 | }executed 408064 times by 14 tests: end of block Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 408064 |
338 | sqlite3_free(p->apHash); | - |
339 | p->apHash = apNew; | - |
340 | p->nHash = nNew; | - |
341 | }executed 96868 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96868 |
342 | }executed 96882 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96882 |
343 | static PgHdr1 *pcache1PinPage(PgHdr1 *pPage){ | - |
344 | | - |
345 | ((void) (0)) | - |
346 | ; | - |
347 | | - |
348 | ((void) (0)) | - |
349 | ; | - |
350 | | - |
351 | ((void) (0)) | - |
352 | ; | - |
353 | | - |
354 | ((void) (0)) | - |
355 | ; | - |
356 | | - |
357 | ((void) (0)) | - |
358 | ; | - |
359 | pPage->pLruPrev->pLruNext = pPage->pLruNext; | - |
360 | pPage->pLruNext->pLruPrev = pPage->pLruPrev; | - |
361 | pPage->pLruNext = 0; | - |
362 | pPage->pLruPrev = 0; | - |
363 | | - |
364 | ((void) (0)) | - |
365 | ; | - |
366 | | - |
367 | ((void) (0)) | - |
368 | ; | - |
369 | pPage->pCache->nRecyclable--; | - |
370 | returnexecuted 11726175 times by 435 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pPage;executed 11726175 times by 435 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 11726175 |
371 | } | - |
372 | static void pcache1RemoveFromHash(PgHdr1 *pPage, int freeFlag){ | - |
373 | unsigned int h; | - |
374 | PCache1 *pCache = pPage->pCache; | - |
375 | PgHdr1 **pp; | - |
376 | | - |
377 | | - |
378 | ((void) (0)) | - |
379 | ; | - |
380 | h = pPage->iKey % pCache->nHash; | - |
381 | for(pp=&pCache->apHash[h]; (*TRUE | evaluated 622054 times by 3 testsEvaluated by:- Self test (438)
- Self test (64)
- Self test (74)
| FALSE | evaluated 5806029 times by 33 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- ...
|
pp)!=pPageTRUE | evaluated 622054 times by 3 testsEvaluated by:- Self test (438)
- Self test (64)
- Self test (74)
| FALSE | evaluated 5806029 times by 33 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- ...
|
; pp=&(*pp)->pNext);executed 622054 times by 3 tests: ; Executed by:- Self test (438)
- Self test (64)
- Self test (74)
| 622054-5806029 |
382 | *pp = (*pp)->pNext; | - |
383 | | - |
384 | pCache->nPage--; | - |
385 | if( freeFlagTRUE | evaluated 392915 times by 23 testsEvaluated by:- Self test
- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (6)
- Self test (7)
- Self test (79)
- Self test (8)
- Self test (88)
| FALSE | evaluated 5413114 times by 28 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
|
) pcache1FreePage(pPage);executed 392915 times by 23 tests: pcache1FreePage(pPage); Executed by:- Self test
- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (6)
- Self test (7)
- Self test (79)
- Self test (8)
- Self test (88)
| 392915-5413114 |
386 | }executed 5806029 times by 33 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- ...
| 5806029 |
387 | | - |
388 | | - |
389 | | - |
390 | | - |
391 | | - |
392 | static void pcache1EnforceMaxPage(PCache1 *pCache){ | - |
393 | PGroup *pGroup = pCache->pGroup; | - |
394 | PgHdr1 *p; | - |
395 | | - |
396 | ((void) (0)) | - |
397 | ; | - |
398 | while( pGroup->nPurgeable>pGroup->nMaxPageTRUE | evaluated 12653 times by 1 test | FALSE | evaluated 307439 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
| 12653-307439 |
399 | && (TRUE | evaluated 12651 times by 1 test | FALSE | evaluated 2 times by 1 test |
p=pGroup->lru.pLruPrev)->isAnchor==0TRUE | evaluated 12651 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-12651 |
400 | ){ | - |
401 | | - |
402 | ((void) (0)) | - |
403 | ; | - |
404 | | - |
405 | ((void) (0)) | - |
406 | ; | - |
407 | pcache1PinPage(p); | - |
408 | pcache1RemoveFromHash(p, 1); | - |
409 | }executed 12651 times by 1 test: end of block | 12651 |
410 | if( pCache->nPage==0TRUE | evaluated 286768 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 20673 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
&& pCache->pBulkTRUE | evaluated 81216 times by 64 testsEvaluated by:- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- Self test (438)
- Self test (44)
- ...
| FALSE | evaluated 205552 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ | 20673-286768 |
411 | sqlite3_free(pCache->pBulk); | - |
412 | pCache->pBulk = pCache->pFree = 0; | - |
413 | }executed 81216 times by 64 tests: end of block Executed by:- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- Self test (438)
- Self test (44)
- ...
| 81216 |
414 | }executed 307441 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 307441 |
415 | static void pcache1TruncateUnsafe( | - |
416 | PCache1 *pCache, | - |
417 | unsigned int iLimit | - |
418 | ){ | - |
419 | | - |
420 | unsigned int h, iStop; | - |
421 | | - |
422 | ((void) (0)) | - |
423 | ; | - |
424 | | - |
425 | ((void) (0)) | - |
426 | ; | - |
427 | | - |
428 | ((void) (0)) | - |
429 | ; | - |
430 | if( pCache->iMaxKey - iLimit < pCache->nHashTRUE | evaluated 89559 times by 82 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| FALSE | evaluated 209 times by 4 testsEvaluated by:- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
|
){ | 209-89559 |
431 | | - |
432 | | - |
433 | | - |
434 | | - |
435 | h = iLimit % pCache->nHash; | - |
436 | iStop = pCache->iMaxKey % pCache->nHash; | - |
437 | | - |
438 | }executed 89559 times by 82 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
else{ | 89559 |
439 | | - |
440 | | - |
441 | h = pCache->nHash/2; | - |
442 | iStop = h - 1; | - |
443 | }executed 209 times by 4 tests: end of block Executed by:- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
| 209 |
444 | for(;;){ | - |
445 | PgHdr1 **pp; | - |
446 | PgHdr1 *pPage; | - |
447 | | - |
448 | ((void) (0)) | - |
449 | ; | - |
450 | pp = &pCache->apHash[h]; | - |
451 | while( (TRUE | evaluated 856887 times by 75 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| FALSE | evaluated 965397 times by 82 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
|
pPage = *pp)!=0TRUE | evaluated 856887 times by 75 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| FALSE | evaluated 965397 times by 82 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
|
){ | 856887-965397 |
452 | if( pPage->iKey>=iLimitTRUE | evaluated 856348 times by 75 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| FALSE | evaluated 539 times by 2 testsEvaluated by:- Self test (34)
- Self test (438)
|
){ | 539-856348 |
453 | pCache->nPage--; | - |
454 | *pp = pPage->pNext; | - |
455 | if( ((TRUE | evaluated 854269 times by 75 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| FALSE | evaluated 2079 times by 1 test |
pPage)->pLruNext!=0)TRUE | evaluated 854269 times by 75 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| FALSE | evaluated 2079 times by 1 test |
) pcache1PinPage(pPage);executed 854269 times by 75 tests: pcache1PinPage(pPage); Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
| 2079-854269 |
456 | pcache1FreePage(pPage); | - |
457 | }executed 856348 times by 75 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- Self test (42)
- Self test (43)
- ...
else{ | 856348 |
458 | pp = &pPage->pNext; | - |
459 | | - |
460 | }executed 539 times by 2 tests: end of block Executed by:- Self test (34)
- Self test (438)
| 539 |
461 | } | - |
462 | if( h==iStopTRUE | evaluated 89768 times by 82 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| FALSE | evaluated 875629 times by 66 testsEvaluated by:- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- ...
|
) break;executed 89768 times by 82 tests: break; Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| 89768-875629 |
463 | h = (h+1) % pCache->nHash; | - |
464 | }executed 875629 times by 66 tests: end of block Executed by:- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- Self test (40)
- Self test (41)
- ...
| 875629 |
465 | | - |
466 | ((void) (0)) | - |
467 | ; | - |
468 | }executed 89768 times by 82 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| 89768 |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | | - |
475 | | - |
476 | static int pcache1Init(void *NotUsed){ | - |
477 | (void)(NotUsed); | - |
478 | | - |
479 | ((void) (0)) | - |
480 | ; | - |
481 | memset(&(pcache1_g), 0, sizeof((pcache1_g))); | - |
482 | (pcache1_g).separateCache = sqlite3Config.pPage==0TRUE | evaluated 523 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 6 times by 1 test |
| 6-523 |
483 | || sqlite3Config.bCoreMutex>0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 4 times by 1 test |
; | 2-4 |
484 | | - |
485 | | - |
486 | | - |
487 | | - |
488 | | - |
489 | if( sqlite3Config.bCoreMutexTRUE | evaluated 521 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 8 times by 1 test |
){ | 8-521 |
490 | (pcache1_g).grp.mutex = sqlite3MutexAlloc(6); | - |
491 | (pcache1_g).mutex = sqlite3MutexAlloc(7); | - |
492 | }executed 521 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 521 |
493 | | - |
494 | if( (TRUE | evaluated 525 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 4 times by 1 test |
pcache1_g).separateCacheTRUE | evaluated 525 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 4 times by 1 test |
| 4-525 |
495 | && sqlite3Config.nPage!=0TRUE | evaluated 514 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 11 times by 1 test |
| 11-514 |
496 | && sqlite3Config.pPage==0TRUE | evaluated 512 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 2 times by 1 test |
| 2-512 |
497 | ){ | - |
498 | (pcache1_g).nInitPage = sqlite3Config.nPage; | - |
499 | }executed 512 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
else{ | 512 |
500 | (pcache1_g).nInitPage = 0; | - |
501 | }executed 17 times by 1 test: end of block | 17 |
502 | (pcache1_g).grp.mxPinned = 10; | - |
503 | (pcache1_g).isInit = 1; | - |
504 | returnexecuted 529 times by 438 tests: return 0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
0;executed 529 times by 438 tests: return 0; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 529 |
505 | } | - |
506 | | - |
507 | | - |
508 | | - |
509 | | - |
510 | | - |
511 | | - |
512 | static void pcache1Shutdown(void *NotUsed){ | - |
513 | (void)(NotUsed); | - |
514 | | - |
515 | ((void) (0)) | - |
516 | ; | - |
517 | memset(&(pcache1_g), 0, sizeof((pcache1_g))); | - |
518 | }executed 92 times by 6 tests: end of block Executed by:- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (438)
| 92 |
519 | | - |
520 | | - |
521 | static void pcache1Destroy(sqlite3_pcache *p); | - |
522 | | - |
523 | | - |
524 | | - |
525 | | - |
526 | | - |
527 | | - |
528 | static sqlite3_pcache *pcache1Create(int szPage, int szExtra, int bPurgeable){ | - |
529 | PCache1 *pCache; | - |
530 | PGroup *pGroup; | - |
531 | int sz; | - |
532 | | - |
533 | | - |
534 | ((void) (0)) | - |
535 | ; | - |
536 | | - |
537 | ((void) (0)) | - |
538 | ; | - |
539 | | - |
540 | sz = sizeof(PCache1) + sizeof(PGroup)*(pcache1_g).separateCache; | - |
541 | pCache = (PCache1 *)sqlite3MallocZero(sz); | - |
542 | if( pCacheTRUE | evaluated 96049 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 14 times by 1 test |
){ | 14-96049 |
543 | if( (TRUE | evaluated 96039 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 10 times by 1 test |
pcache1_g).separateCacheTRUE | evaluated 96039 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 10 times by 1 test |
){ | 10-96039 |
544 | pGroup = (PGroup*)&pCache[1]; | - |
545 | pGroup->mxPinned = 10; | - |
546 | }executed 96039 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
else{ | 96039 |
547 | pGroup = &(pcache1_g).grp; | - |
548 | }executed 10 times by 1 test: end of block | 10 |
549 | if( pGroup->lru.isAnchor==0TRUE | evaluated 96043 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 6 times by 1 test |
){ | 6-96043 |
550 | pGroup->lru.isAnchor = 1; | - |
551 | pGroup->lru.pLruPrev = pGroup->lru.pLruNext = &pGroup->lru; | - |
552 | }executed 96043 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96043 |
553 | pCache->pGroup = pGroup; | - |
554 | pCache->szPage = szPage; | - |
555 | pCache->szExtra = szExtra; | - |
556 | pCache->szAlloc = szPage + szExtra + (((sizeof(PgHdr1))+7)&~7); | - |
557 | pCache->bPurgeable = (bPurgeableTRUE | evaluated 95748 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 301 times by 1 test |
? 1 : 0); | 301-95748 |
558 | | - |
559 | ((void) (0)) | - |
560 | ; | - |
561 | pcache1ResizeHash(pCache); | - |
562 | if( bPurgeableTRUE | evaluated 95748 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 301 times by 1 test |
){ | 301-95748 |
563 | pCache->nMin = 10; | - |
564 | pGroup->nMinPage += pCache->nMin; | - |
565 | pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage; | - |
566 | pCache->pnPurgeable = &pGroup->nPurgeable; | - |
567 | }executed 95748 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
else{ | 95748 |
568 | static unsigned int dummyCurrentPage; | - |
569 | pCache->pnPurgeable = &dummyCurrentPage; | - |
570 | }executed 301 times by 1 test: end of block | 301 |
571 | | - |
572 | ((void) (0)) | - |
573 | ; | - |
574 | if( pCache->nHash==0TRUE | evaluated 14 times by 1 test | FALSE | evaluated 96035 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
|
){ | 14-96035 |
575 | pcache1Destroy((sqlite3_pcache*)pCache); | - |
576 | pCache = 0; | - |
577 | }executed 14 times by 1 test: end of block | 14 |
578 | }executed 96049 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96049 |
579 | returnexecuted 96063 times by 438 tests: return (sqlite3_pcache *)pCache; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
(sqlite3_pcache *)pCache;executed 96063 times by 438 tests: return (sqlite3_pcache *)pCache; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 96063 |
580 | } | - |
581 | | - |
582 | | - |
583 | | - |
584 | | - |
585 | | - |
586 | | - |
587 | static void pcache1Cachesize(sqlite3_pcache *p, int nMax){ | - |
588 | PCache1 *pCache = (PCache1 *)p; | - |
589 | if( pCache->bPurgeableTRUE | evaluated 211761 times by 438 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| FALSE | evaluated 756 times by 1 test |
){ | 756-211761 |
590 | PGroup *pGroup = pCache->pGroup; | - |
591 | | - |
592 | ((void) (0)) | - |
593 | ; | - |
594 | pGroup->nMaxPage += (nMax - pCache->nMax); | - |
595 | pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage; | - |
596 | pCache->nMax = nMax; | - |
597 | pCache->n90pct = pCache->nMax*9/10; | - |
598 | pcache1EnforceMaxPage(pCache); | - |
599 | | - |
600 | ((void) (0)) | - |
601 | ; | - |
602 | }executed 211761 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 211761 |
603 | }executed 212517 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 212517 |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | static void pcache1Shrink(sqlite3_pcache *p){ | - |
611 | PCache1 *pCache = (PCache1*)p; | - |
612 | if( pCache->bPurgeableTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
){ | 0-6 |
613 | PGroup *pGroup = pCache->pGroup; | - |
614 | int savedMaxPage; | - |
615 | | - |
616 | ((void) (0)) | - |
617 | ; | - |
618 | savedMaxPage = pGroup->nMaxPage; | - |
619 | pGroup->nMaxPage = 0; | - |
620 | pcache1EnforceMaxPage(pCache); | - |
621 | pGroup->nMaxPage = savedMaxPage; | - |
622 | | - |
623 | ((void) (0)) | - |
624 | ; | - |
625 | }executed 6 times by 1 test: end of block | 6 |
626 | }executed 6 times by 1 test: end of block | 6 |
627 | | - |
628 | | - |
629 | | - |
630 | | - |
631 | static int pcache1Pagecount(sqlite3_pcache *p){ | - |
632 | int n; | - |
633 | PCache1 *pCache = (PCache1*)p; | - |
634 | | - |
635 | ((void) (0)) | - |
636 | ; | - |
637 | n = pCache->nPage; | - |
638 | | - |
639 | ((void) (0)) | - |
640 | ; | - |
641 | returnexecuted 1489785 times by 27 tests: return n; Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
n;executed 1489785 times by 27 tests: return n; Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| 1489785 |
642 | } | - |
643 | static __attribute__((noinline)) PgHdr1 *pcache1FetchStage2( | - |
644 | PCache1 *pCache, | - |
645 | unsigned int iKey, | - |
646 | int createFlag | - |
647 | ){ | - |
648 | unsigned int nPinned; | - |
649 | PGroup *pGroup = pCache->pGroup; | - |
650 | PgHdr1 *pPage = 0; | - |
651 | | - |
652 | | - |
653 | | - |
654 | ((void) (0)) | - |
655 | ; | - |
656 | nPinned = pCache->nPage - pCache->nRecyclable; | - |
657 | | - |
658 | ((void) (0)) | - |
659 | ; | - |
660 | | - |
661 | ((void) (0)) | - |
662 | ; | - |
663 | if( createFlag==1TRUE | evaluated 3055748 times by 372 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (11)
- Self test (12)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (13)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- ...
| FALSE | evaluated 5146816 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
&& ( | 3055748-5146816 |
664 | nPinned>=pGroup->mxPinnedTRUE | evaluated 262675 times by 21 testsEvaluated by:- Self test (10)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (6)
- Self test (7)
- Self test (8)
| FALSE | evaluated 2793073 times by 372 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (11)
- Self test (12)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (13)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- ...
|
| 262675-2793073 |
665 | || nPinned>=pCache->n90pctTRUE | evaluated 1225947 times by 27 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| FALSE | evaluated 1567126 times by 372 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (11)
- Self test (12)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (13)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- ...
|
| 1225947-1567126 |
666 | || (pcache1UnderMemoryPressure(pCache)TRUE | evaluated 1825 times by 1 test | FALSE | evaluated 1565301 times by 372 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (11)
- Self test (12)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- Self test (126)
- Self test (127)
- Self test (128)
- Self test (129)
- Self test (13)
- Self test (130)
- Self test (131)
- Self test (132)
- Self test (133)
- Self test (134)
- Self test (135)
- Self test (136)
- Self test (137)
- Self test (138)
- ...
|
&& pCache->nRecyclable<nPinnedTRUE | evaluated 1092 times by 1 test | FALSE | evaluated 733 times by 1 test |
) | 733-1565301 |
667 | )){ | - |
668 | returnexecuted 1489714 times by 27 tests: return 0; Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
0;executed 1489714 times by 27 tests: return 0; Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| 1489714 |
669 | } | - |
670 | | - |
671 | if( pCache->nPage>=pCache->nHashTRUE | evaluated 833 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 6712017 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
) pcache1ResizeHash(pCache);executed 833 times by 14 tests: pcache1ResizeHash(pCache); Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 833-6712017 |
672 | | - |
673 | ((void) (0)) | - |
674 | ; | - |
675 | | - |
676 | | - |
677 | if( pCache->bPurgeableTRUE | evaluated 6710789 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 2061 times by 1 test |
| 2061-6710789 |
678 | && !pGroup->lru.pLruPrev->isAnchorTRUE | evaluated 5981047 times by 377 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- ...
| FALSE | evaluated 729742 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 729742-5981047 |
679 | && ((TRUE | evaluated 5409049 times by 28 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| FALSE | evaluated 571998 times by 377 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- ...
|
pCache->nPage+1>=pCache->nMax)TRUE | evaluated 5409049 times by 28 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| FALSE | evaluated 571998 times by 377 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- ...
|
|| pcache1UnderMemoryPressure(pCache)TRUE | evaluated 4065 times by 1 test | FALSE | evaluated 567933 times by 377 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (104)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- ...
|
) | 4065-5409049 |
680 | ){ | - |
681 | PCache1 *pOther; | - |
682 | pPage = pGroup->lru.pLruPrev; | - |
683 | | - |
684 | ((void) (0)) | - |
685 | ; | - |
686 | pcache1RemoveFromHash(pPage, 0); | - |
687 | pcache1PinPage(pPage); | - |
688 | pOther = pPage->pCache; | - |
689 | if( pOther->szAlloc != pCache->szAllocTRUE | never evaluated | FALSE | evaluated 5413114 times by 28 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
|
){ | 0-5413114 |
690 | pcache1FreePage(pPage); | - |
691 | pPage = 0; | - |
692 | } never executed: end of block else{ | 0 |
693 | pGroup->nPurgeable -= (pOther->bPurgeable - pCache->bPurgeable); | - |
694 | }executed 5413114 times by 28 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
| 5413114 |
695 | } | - |
696 | | - |
697 | | - |
698 | | - |
699 | | - |
700 | if( !pPageTRUE | evaluated 1299736 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 5413114 times by 28 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (54)
- Self test (57)
- Self test (58)
- Self test (6)
- Self test (64)
- Self test (7)
- ...
|
){ | 1299736-5413114 |
701 | pPage = pcache1AllocPage(pCache, createFlag==1); | - |
702 | }executed 1299736 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1299736 |
703 | | - |
704 | if( pPageTRUE | evaluated 6712842 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 8 times by 1 test |
){ | 8-6712842 |
705 | unsigned int h = iKey % pCache->nHash; | - |
706 | pCache->nPage++; | - |
707 | pPage->iKey = iKey; | - |
708 | pPage->pNext = pCache->apHash[h]; | - |
709 | pPage->pCache = pCache; | - |
710 | pPage->pLruPrev = 0; | - |
711 | pPage->pLruNext = 0; | - |
712 | *(void **)pPage->page.pExtra = 0; | - |
713 | pCache->apHash[h] = pPage; | - |
714 | if( iKey>pCache->iMaxKeyTRUE | evaluated 1126130 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 5586712 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
){ | 1126130-5586712 |
715 | pCache->iMaxKey = iKey; | - |
716 | }executed 1126130 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1126130 |
717 | }executed 6712842 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 6712842 |
718 | returnexecuted 6712850 times by 435 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pPage;executed 6712850 times by 435 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 6712850 |
719 | } | - |
720 | static PgHdr1 *pcache1FetchNoMutex( | - |
721 | sqlite3_pcache *p, | - |
722 | unsigned int iKey, | - |
723 | int createFlag | - |
724 | ){ | - |
725 | PCache1 *pCache = (PCache1 *)p; | - |
726 | PgHdr1 *pPage = 0; | - |
727 | | - |
728 | | - |
729 | pPage = pCache->apHash[iKey % pCache->nHash]; | - |
730 | while( pPageTRUE | evaluated 19327234 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 8344943 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
&& pPage->iKey!=iKeyTRUE | evaluated 2565882 times by 14 testsEvaluated by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| FALSE | evaluated 16761352 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
){ pPage = pPage->pNext; }executed 2565882 times by 14 tests: end of block Executed by:- Self test (100)
- Self test (34)
- Self test (438)
- Self test (64)
- Self test (74)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
| 2565882-19327234 |
731 | | - |
732 | | - |
733 | | - |
734 | | - |
735 | | - |
736 | if( pPageTRUE | evaluated 16761352 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 8344943 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
){ | 8344943-16761352 |
737 | if( ((TRUE | evaluated 5446141 times by 430 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 11315211 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
pPage)->pLruNext!=0)TRUE | evaluated 5446141 times by 430 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 11315211 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
){ | 5446141-11315211 |
738 | returnexecuted 5446141 times by 430 tests: return pcache1PinPage(pPage); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pcache1PinPage(pPage);executed 5446141 times by 430 tests: return pcache1PinPage(pPage); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 5446141 |
739 | }else{ | - |
740 | returnexecuted 11315211 times by 434 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pPage;executed 11315211 times by 434 tests: return pPage; Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 11315211 |
741 | } | - |
742 | }else if( createFlagTRUE | evaluated 8202564 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| FALSE | evaluated 142379 times by 17 testsEvaluated by:- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (34)
- Self test (438)
- Self test (54)
- Self test (6)
- Self test (7)
- Self test (8)
- Self test (9)
|
){ | 142379-8202564 |
743 | | - |
744 | returnexecuted 8202564 times by 435 tests: return pcache1FetchStage2(pCache, iKey, createFlag); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
pcache1FetchStage2(pCache, iKey, createFlag);executed 8202564 times by 435 tests: return pcache1FetchStage2(pCache, iKey, createFlag); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 8202564 |
745 | }else{ | - |
746 | returnexecuted 142379 times by 17 tests: return 0; Executed by:- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (34)
- Self test (438)
- Self test (54)
- Self test (6)
- Self test (7)
- Self test (8)
- Self test (9)
0;executed 142379 times by 17 tests: return 0; Executed by:- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (34)
- Self test (438)
- Self test (54)
- Self test (6)
- Self test (7)
- Self test (8)
- Self test (9)
| 142379 |
747 | } | - |
748 | } | - |
749 | static sqlite3_pcache_page *pcache1Fetch( | - |
750 | sqlite3_pcache *p, | - |
751 | unsigned int iKey, | - |
752 | int createFlag | - |
753 | ){ | - |
754 | | - |
755 | | - |
756 | | - |
757 | | - |
758 | | - |
759 | ((void) (0)) | - |
760 | ; | - |
761 | | - |
762 | ((void) (0)) | - |
763 | ; | - |
764 | | - |
765 | ((void) (0)) | - |
766 | ; | - |
767 | | - |
768 | ((void) (0)) | - |
769 | ; | - |
770 | | - |
771 | ((void) (0)) | - |
772 | ; | - |
773 | | - |
774 | ((void) (0)) | - |
775 | ; | - |
776 | | - |
777 | | - |
778 | | - |
779 | | - |
780 | | - |
781 | { | - |
782 | returnexecuted 25106295 times by 435 tests: return (sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
(sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag);executed 25106295 times by 435 tests: return (sqlite3_pcache_page*)pcache1FetchNoMutex(p, iKey, createFlag); Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 25106295 |
783 | } | - |
784 | } | - |
785 | | - |
786 | | - |
787 | | - |
788 | | - |
789 | | - |
790 | | - |
791 | | - |
792 | static void pcache1Unpin( | - |
793 | sqlite3_pcache *p, | - |
794 | sqlite3_pcache_page *pPg, | - |
795 | int reuseUnlikely | - |
796 | ){ | - |
797 | PCache1 *pCache = (PCache1 *)p; | - |
798 | PgHdr1 *pPage = (PgHdr1 *)pPg; | - |
799 | PGroup *pGroup = pCache->pGroup; | - |
800 | | - |
801 | | - |
802 | ((void) (0)) | - |
803 | ; | - |
804 | | - |
805 | ((void) (0)) | - |
806 | ; | - |
807 | | - |
808 | | - |
809 | | - |
810 | | - |
811 | | - |
812 | ((void) (0)) | - |
813 | ; | - |
814 | | - |
815 | ((void) (0)) | - |
816 | ; | - |
817 | | - |
818 | if( reuseUnlikelyTRUE | evaluated 4611 times by 7 testsEvaluated by:- Self test
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (79)
- Self test (88)
| FALSE | evaluated 12134226 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
|| pGroup->nPurgeable>pGroup->nMaxPageTRUE | evaluated 375653 times by 17 testsEvaluated by:- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (438)
- Self test (6)
- Self test (7)
- Self test (8)
| FALSE | evaluated 11758573 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
){ | 4611-12134226 |
819 | pcache1RemoveFromHash(pPage, 1); | - |
820 | }executed 380264 times by 23 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (11)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (3)
- Self test (32)
- Self test (33)
- Self test (39)
- Self test (438)
- Self test (6)
- Self test (7)
- Self test (79)
- Self test (8)
- Self test (88)
else{ | 380264 |
821 | | - |
822 | PgHdr1 **ppFirst = &pGroup->lru.pLruNext; | - |
823 | pPage->pLruPrev = &pGroup->lru; | - |
824 | (pPage->pLruNext = *ppFirst)->pLruPrev = pPage; | - |
825 | *ppFirst = pPage; | - |
826 | pCache->nRecyclable++; | - |
827 | }executed 11758573 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 11758573 |
828 | | - |
829 | | - |
830 | ((void) (0)) | - |
831 | ; | - |
832 | }executed 12138837 times by 435 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 12138837 |
833 | | - |
834 | | - |
835 | | - |
836 | | - |
837 | static void pcache1Rekey( | - |
838 | sqlite3_pcache *p, | - |
839 | sqlite3_pcache_page *pPg, | - |
840 | unsigned int iOld, | - |
841 | unsigned int iNew | - |
842 | ){ | - |
843 | PCache1 *pCache = (PCache1 *)p; | - |
844 | PgHdr1 *pPage = (PgHdr1 *)pPg; | - |
845 | PgHdr1 **pp; | - |
846 | unsigned int h; | - |
847 | | - |
848 | ((void) (0)) | - |
849 | ; | - |
850 | | - |
851 | ((void) (0)) | - |
852 | ; | - |
853 | | - |
854 | | - |
855 | ((void) (0)) | - |
856 | ; | - |
857 | | - |
858 | h = iOld%pCache->nHash; | - |
859 | pp = &pCache->apHash[h]; | - |
860 | while( (*TRUE | evaluated 4515 times by 1 test | FALSE | evaluated 351186 times by 152 testsEvaluated by:- Self test
- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- ...
|
pp)!=pPageTRUE | evaluated 4515 times by 1 test | FALSE | evaluated 351186 times by 152 testsEvaluated by:- Self test
- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- ...
|
){ | 4515-351186 |
861 | pp = &(*pp)->pNext; | - |
862 | }executed 4515 times by 1 test: end of block | 4515 |
863 | *pp = pPage->pNext; | - |
864 | | - |
865 | h = iNew%pCache->nHash; | - |
866 | pPage->iKey = iNew; | - |
867 | pPage->pNext = pCache->apHash[h]; | - |
868 | pCache->apHash[h] = pPage; | - |
869 | if( iNew>pCache->iMaxKeyTRUE | evaluated 41435 times by 151 testsEvaluated by:- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- Self test (318)
- ...
| FALSE | evaluated 309751 times by 152 testsEvaluated by:- Self test
- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- ...
|
){ | 41435-309751 |
870 | pCache->iMaxKey = iNew; | - |
871 | }executed 41435 times by 151 tests: end of block Executed by:- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- Self test (318)
- ...
| 41435 |
872 | | - |
873 | | - |
874 | ((void) (0)) | - |
875 | ; | - |
876 | }executed 351186 times by 152 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (12)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (18)
- Self test (20)
- Self test (22)
- Self test (302)
- Self test (303)
- Self test (304)
- Self test (305)
- Self test (306)
- Self test (307)
- Self test (308)
- Self test (309)
- Self test (310)
- Self test (311)
- Self test (312)
- Self test (313)
- Self test (314)
- Self test (315)
- Self test (316)
- Self test (317)
- ...
| 351186 |
877 | static void pcache1Truncate(sqlite3_pcache *p, unsigned int iLimit){ | - |
878 | PCache1 *pCache = (PCache1 *)p; | - |
879 | | - |
880 | ((void) (0)) | - |
881 | ; | - |
882 | if( iLimit<=pCache->iMaxKeyTRUE | evaluated 89750 times by 82 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| FALSE | evaluated 236174 times by 98 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (25)
- Self test (26)
- ...
|
){ | 89750-236174 |
883 | pcache1TruncateUnsafe(pCache, iLimit); | - |
884 | pCache->iMaxKey = iLimit-1; | - |
885 | }executed 89750 times by 82 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (14)
- Self test (15)
- Self test (18)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (35)
- Self test (36)
- Self test (37)
- Self test (38)
- Self test (39)
- ...
| 89750 |
886 | | - |
887 | ((void) (0)) | - |
888 | ; | - |
889 | }executed 325924 times by 105 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (25)
- Self test (26)
- ...
| 325924 |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | | - |
896 | static void pcache1Destroy(sqlite3_pcache *p){ | - |
897 | PCache1 *pCache = (PCache1 *)p; | - |
898 | PGroup *pGroup = pCache->pGroup; | - |
899 | | - |
900 | ((void) (0)) | - |
901 | ; | - |
902 | | - |
903 | ((void) (0)) | - |
904 | ; | - |
905 | if( pCache->nPageTRUE | evaluated 18 times by 1 test | FALSE | evaluated 95656 times by 99 testsEvaluated by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (25)
- Self test (26)
- Self test (27)
- ...
|
) pcache1TruncateUnsafe(pCache, 0);executed 18 times by 1 test: pcache1TruncateUnsafe(pCache, 0); | 18-95656 |
906 | | - |
907 | ((void) (0)) | - |
908 | ; | - |
909 | pGroup->nMaxPage -= pCache->nMax; | - |
910 | | - |
911 | ((void) (0)) | - |
912 | ; | - |
913 | pGroup->nMinPage -= pCache->nMin; | - |
914 | pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage; | - |
915 | pcache1EnforceMaxPage(pCache); | - |
916 | | - |
917 | ((void) (0)) | - |
918 | ; | - |
919 | sqlite3_free(pCache->pBulk); | - |
920 | sqlite3_free(pCache->apHash); | - |
921 | sqlite3_free(pCache); | - |
922 | }executed 95674 times by 99 tests: end of block Executed by:- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (12)
- Self test (13)
- Self test (14)
- Self test (15)
- Self test (16)
- Self test (17)
- Self test (18)
- Self test (19)
- Self test (2)
- Self test (20)
- Self test (21)
- Self test (22)
- Self test (23)
- Self test (24)
- Self test (25)
- Self test (26)
- Self test (27)
- ...
| 95674 |
923 | | - |
924 | | - |
925 | | - |
926 | | - |
927 | | - |
928 | | - |
929 | void sqlite3PCacheSetDefault(void){ | - |
930 | static const sqlite3_pcache_methods2 defaultMethods = { | - |
931 | 1, | - |
932 | 0, | - |
933 | pcache1Init, | - |
934 | pcache1Shutdown, | - |
935 | pcache1Create, | - |
936 | pcache1Cachesize, | - |
937 | pcache1Pagecount, | - |
938 | pcache1Fetch, | - |
939 | pcache1Unpin, | - |
940 | pcache1Rekey, | - |
941 | pcache1Truncate, | - |
942 | pcache1Destroy, | - |
943 | pcache1Shrink | - |
944 | }; | - |
945 | sqlite3_config(18, &defaultMethods); | - |
946 | }executed 438 times by 438 tests: end of block Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (102)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- ...
| 438 |
947 | | - |
948 | | - |
949 | | - |
950 | | - |
951 | int sqlite3HeaderSizePcache1(void){ return never executed: return (((sizeof(PgHdr1))+7)&~7); (((sizeof(PgHdr1))+7)&~7);never executed: return (((sizeof(PgHdr1))+7)&~7); } | 0 |
952 | | - |
953 | | - |
954 | | - |
955 | | - |
956 | | - |
957 | sqlite3_mutex *sqlite3Pcache1Mutex(void){ | - |
958 | returnexecuted 2971 times by 1 test: return (pcache1_g).mutex; (pcache1_g).mutex;executed 2971 times by 1 test: return (pcache1_g).mutex; | 2971 |
959 | } | - |
960 | void sqlite3PcacheStats( | - |
961 | int *pnCurrent, | - |
962 | int *pnMax, | - |
963 | int *pnMin, | - |
964 | int *pnRecyclable | - |
965 | ){ | - |
966 | PgHdr1 *p; | - |
967 | int nRecyclable = 0; | - |
968 | for(p=(pcache1_g).grp.lru.pLruNext; pTRUE | never evaluated | FALSE | never evaluated |
&& !p->isAnchorTRUE | never evaluated | FALSE | never evaluated |
; p=p->pLruNext){ | 0 |
969 | | - |
970 | ((void) (0)) | - |
971 | ; | - |
972 | nRecyclable++; | - |
973 | } never executed: end of block | 0 |
974 | *pnCurrent = (pcache1_g).grp.nPurgeable; | - |
975 | *pnMax = (int)(pcache1_g).grp.nMaxPage; | - |
976 | *pnMin = (int)(pcache1_g).grp.nMinPage; | - |
977 | *pnRecyclable = nRecyclable; | - |
978 | } never executed: end of block | 0 |
| | |