Lines Matching full:chunk
1264 ** point to an integer (type int) containing the new chunk-size to use
14906 ** Maximum size (in Mem3Blocks) of a "small" chunk.
14917 ** A memory allocation (also called a "chunk") consists of two or
14921 ** A chunk is two or more blocks that is either checked out or
14924 ** The u.hdr.size4x&1 bit is true if the chunk is checked out and
14925 ** false if the chunk is on the freelist. The u.hdr.size4x&2 bit
14926 ** is true if the previous chunk is checked out and false if the
14927 ** previous chunk is free. The u.hdr.prevSize field is the size of
14928 ** the previous chunk in blocks if the previous chunk is on the
14929 ** freelist. If the previous chunk is checked out, then
14930 ** u.hdr.prevSize can be part of the data for that chunk and should
14933 ** We often identify a chunk by its index in mem3.aPool[]. When
14934 ** this is done, the chunk index refers to the second block of
14935 ** the chunk. In this way, the first chunk has an index of 1.
14936 ** A chunk index of 0 means "no such chunk" and is the equivalent
14944 ** The second block of a chunk is user data if the chunk is checked
14945 ** out. If a chunk is checked out, the user data may extend into
14946 ** the u.hdr.prevSize value of the following chunk.
14952 u32 prevSize; /* Size of previous chunk in Mem3Block elements */
14953 u32 size4x; /* 4x the size of current chunk in Mem3Block elements */
14956 u32 next; /* Index in mem3.aPool[] of next free chunk */
14957 u32 prev; /* Index in mem3.aPool[] of previous free chunk */
14992 ** iMaster is the index of the master chunk. Most new allocations
14993 ** occur off of this chunk. szMaster is the size (in Mem3Blocks)
14994 ** of the current master. iMaster is 0 if there is not master chunk.
14995 ** The master chunk is not in either the aiHash[] or aiSmall[].
15012 ** Unlink the chunk at mem3.aPool[i] from list it is currently
15032 ** Unlink the chunk at index i from
15052 ** Link the chunk at mem3.aPool[i] so that is on the list rooted
15066 ** Link the chunk at index i into either the appropriate
15067 ** small chunk list, or into the large chunk hash table.
15116 ** Chunk i is a free chunk that has been unlinked. Adjust its
15118 ** user portion of the chunk.
15134 ** Carve a piece off of the end of the mem3.iMaster free chunk.
15135 ** Return a pointer to the new allocation. Or, if the master chunk
15175 ** If it sees a chunk that is larger than mem3.iMaster, it replaces
15176 ** the current mem3.iMaster with the new larger chunk. In order for
15177 ** this mem3.iMaster replacement to work, the master chunk must be
15180 ** chunk before invoking this routine, then must unlink the (possibly
15181 ** changed) master chunk once this routine has finished.
15238 ** chunk table or in the large chunk hash table. This is
15259 ** of the master chunk. This step usually works if step 1 fails.
15268 ** chunks. Recompute the master chunk as the largest free chunk.
15270 ** of the end of the master chunk. This step happens very
15319 /* Try to expand the master using the newly freed chunk */
15626 int next; /* Index of next free chunk */
15627 int prev; /* Index of previous free chunk */
15701 ** Unlink the chunk at mem5.aPool[i] from list it is currently
15723 ** Link the chunk at mem5.aPool[i] so that is on the iLogsize
26077 /* If the user has configured a chunk-size for this file, truncate the
26147 ** If the user has configured a chunk-size for this file, it could be
29748 int szChunk; /* Chunk size configured by FCNTL_CHUNK_SIZE */
30429 /* If the user has configured a chunk-size for this file, truncate the
34343 ** The number of rowset entries per allocation chunk.
34364 struct RowSetChunk *pNextChunk; /* Next chunk on list of them all */
34374 struct RowSetChunk *pChunk; /* List of all chunk allocations */
37478 ** chunk of the journal contains zero pages to be rolled back. But
37479 ** when doing a ROLLBACK and the nRec==0 chunk is the last chunk in
43386 volatile u32 *page0; /* Chunk of wal-index containing header */
67250 FileChunk *pNext; /* Next chunk in the journal */
67251 u8 zChunk[JOURNAL_CHUNKSIZE]; /* Content of this chunk */
67260 FileChunk *pChunk; /* Specific chunk into which cursor points */
67269 FileChunk *pFirst; /* Head of in-memory chunk-list */
67345 /* New chunk is required to extend the file. */