]> git.ipfire.org Git - thirdparty/gcc.git/commit
Introduce new type-based pool allocator.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2015 12:29:12 +0000 (12:29 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2015 12:29:12 +0000 (12:29 +0000)
commit419f2d6236f6a4d83ccaf82a14610bfe532065e6
tree5e5b7af70400998f92983d09f4c721873f8f42be
parent6da3491c596e84a6b288f91fd7c22782fa158704
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223942 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/alloc-pool.c
gcc/alloc-pool.h