Introduce new type-based pool allocator.
authorMartin Liska <mliska@suse.cz>
Mon, 1 Jun 2015 12:29:12 +0000 (14:29 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 1 Jun 2015 12:29:12 +0000 (12:29 +0000)
commit7d50111bc5df13eab9a7bfe2474d259624abe5d3
tree5e5b7af70400998f92983d09f4c721873f8f42be
parent32d48af55ed76de590977ef9fc32f392523ff4d9
Introduce new type-based pool allocator.

* alloc-pool.c (struct alloc_pool_descriptor): Move definition
to header file.
* alloc-pool.h (pool_allocator::pool_allocator): New function.
(pool_allocator::release): Likewise.
(inline pool_allocator::release_if_empty): Likewise.
(inline pool_allocator::~pool_allocator): Likewise.
(pool_allocator::allocate): Likewise.
(pool_allocator::remove): Likewise.

From-SVN: r223942
gcc/ChangeLog
gcc/alloc-pool.c
gcc/alloc-pool.h