Home | History | Annotate | Download | only in libiberty

Lines Matching refs: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;
141 struct objalloc_chunk *chunk;
147 chunk = (struct objalloc_chunk *) ret;
148 chunk->next = (struct objalloc_chunk *) o->chunks;
149 chunk->current_ptr = o->current_ptr;
151 o->chunks = (PTR) chunk;
157 struct objalloc_chunk *chunk;
159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE);
160 if (chunk == NULL)
162 chunk->next = (struct objalloc_chunk *) o->chunks;
163 chunk->current_ptr = NULL;
165 o->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE;
168 o->chunks = (PTR) chunk;
203 /* First set P to the chunk which contains the block we are freeing,
204 and set Q to the last small object chunk we see before P. */
221 /* If we can't find the chunk, the caller has made a mistake. */
230 /* The block is in a chunk containing small objects. We can
231 free every chunk through SMALL, because they have certainly
234 chunk if the current_ptr is greater than or equal to B. We
271 /* This block is in a large chunk by itself. We can free
273 then start allocating from the next chunk containing small
275 large chunk we are freeing. */