GCC Middle and Back End API Reference
alloc-pool.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  alloc_pool_list_def
struct  alloc_pool_def

Typedefs

typedef unsigned long ALLOC_POOL_ID_TYPE
typedef struct
alloc_pool_list_def
alloc_pool_list
typedef struct alloc_pool_defalloc_pool

Functions

alloc_pool create_alloc_pool (const char *, size_t, size_t)
void free_alloc_pool (alloc_pool)
void empty_alloc_pool (alloc_pool)
void free_alloc_pool_if_empty (alloc_pool *)
void * pool_alloc (alloc_pool) ATTRIBUTE_MALLOC
void pool_free (alloc_pool, void *)
void dump_alloc_pool_statistics (void)

Typedef Documentation

typedef struct alloc_pool_def * alloc_pool
typedef unsigned long ALLOC_POOL_ID_TYPE

Functions to support a pool of allocatable objects Copyright (C) 1997-2013 Free Software Foundation, Inc. Contributed by Daniel Berlin dan@c.nosp@m.gsof.nosp@m.tware.nosp@m..com

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.


Function Documentation

alloc_pool create_alloc_pool ( const char *  ,
size_t  ,
size_t   
)
void dump_alloc_pool_statistics ( void  )

Output per-alloc_pool memory usage statistics.

void empty_alloc_pool ( alloc_pool  )
void free_alloc_pool ( alloc_pool  )
void free_alloc_pool_if_empty ( alloc_pool )
void* pool_alloc ( alloc_pool  )
void pool_free ( alloc_pool  ,
void *   
)