GCC Middle and Back End API Reference
memory-block.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "memory-block.h"
#include "obstack.h"
Include dependency graph for memory-block.cc:

Functions

void * mempool_obstack_chunk_alloc (size_t size)
 
void mempool_obstack_chunk_free (void *chunk)
 

Function Documentation

◆ mempool_obstack_chunk_alloc()

void * mempool_obstack_chunk_alloc ( size_t size)
Allocate a chunk for obstack.  Use the pool if requested chunk size matches
the size of blocks in the pool.   

References memory_block_pool::allocate(), and memory_block_pool::block_size.

◆ mempool_obstack_chunk_free()

void mempool_obstack_chunk_free ( void * chunk)
Free previously allocated obstack chunk.   

References memory_block_pool::block_size, and memory_block_pool::release().