Lines Matching defs:chunk
56 /* This structure appears at the start of each chunk. */
60 /* Next chunk. */
62 /* If this chunk contains large objects, this is the value of
63 current_ptr when this chunk was allocated. If this chunk
74 /* We ask for this much memory each time we create a chunk which is to
89 struct objalloc_chunk *chunk;
102 chunk = (struct objalloc_chunk *) ret->chunks;
103 chunk->next = NULL;
104 chunk->current_ptr = NULL;
106 ret->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE;
134 struct objalloc_chunk *chunk;
140 chunk = (struct objalloc_chunk *) ret;
141 chunk->next = (struct objalloc_chunk *) o->chunks;
142 chunk->current_ptr = o->current_ptr;
144 o->chunks = (PTR) chunk;
150 struct objalloc_chunk *chunk;
152 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE);
153 if (chunk == NULL)
155 chunk->next = (struct objalloc_chunk *) o->chunks;
156 chunk->current_ptr = NULL;
158 o->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE;
161 o->chunks = (PTR) chunk;
196 /* First set P to the chunk which contains the block we are freeing,
197 and set Q to the last small object chunk we see before P. */
214 /* If we can't find the chunk, the caller has made a mistake. */
223 /* The block is in a chunk containing small objects. We can
224 free every chunk through SMALL, because they have certainly
227 chunk if the current_ptr is greater than or equal to B. We
264 /* This block is in a large chunk by itself. We can free
266 then start allocating from the next chunk containing small
268 large chunk we are freeing. */