Lines Matching refs:chunk

67 The obstack library obtains a new chunk whenever you allocate an object
68 that won't fit in the previous chunk. Since the obstack library manages
71 get a chunk. Usually you supply a function which uses @code{malloc}
72 directly or indirectly. You must also supply a function to free a chunk.
155 Like @code{obstack_init}, specifying chunk size, chunk
203 it needs to allocate a new chunk of memory; it calls
286 the objects in a chunk become free, the obstack library automatically
287 frees the chunk (@pxref{Preparing for Obstacks}). Then other
288 obstacks, or non-obstack allocation, can reuse the space of the chunk.
346 add so much data that the object must be copied into a new chunk.
437 whether there is room for the new growth in the current chunk. If you
450 in the current chunk.
497 new chunk; then there will be lots of room available again.
501 to a new chunk, there will be plenty of space again, so the program will
517 @r{which may copy to a new chunk and make room.} */
557 may outgrow the current chunk---then its address will change!
561 chunk).
568 chunk of obstack @var{obstack-ptr}. This is the end of the currently
633 are normally 4096 bytes long unless you specify a different chunk size.
634 The chunk size includes 8 bytes of overhead that are not actually used
639 @code{obstack_chunk_alloc}, which you must define. When a chunk is no
641 library frees the chunk by calling @code{obstack_chunk_free}, which you
658 If you allocate chunks with @code{malloc}, the chunk size should be a
659 power of 2. The default chunk size, 4096, was chosen because it is long
661 not to waste too much memory in the portion of the last chunk not yet used.
666 This returns the chunk size of the given obstack.
669 Since this macro expands to an lvalue, you can specify a new chunk size by
672 obstack in the future. It is unlikely to be useful to make the chunk size
674 allocating many objects whose size is comparable to the chunk size. Here
678 if (obstack_chunk_size (obstack_ptr) < @var{new-chunk-size})
679 obstack_chunk_size (obstack_ptr) = @var{new-chunk-size};
694 Initialize use of an obstack, with an initial chunk of
698 Initialize use of an obstack, specifying intial chunk size, chunk