aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dbrelin.org>2007-06-11 18:02:15 +0000
committerDaniel Berlin <dberlin@dbrelin.org>2007-06-11 18:02:15 +0000
commitb02c15189c191c9364d69e0681879ee175a137fc (patch)
treefdb9e9f8a0700a2713dc690fed1a2cf20dae8392 /gcc/alloc-pool.h
parentc3bb09fc612a5f27b347e1ed6f8fd9364136518d (diff)
Merge dataflow branch into mainline
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@125624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r--gcc/alloc-pool.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h
index 82188f4c064..faf13e8e1a0 100644
--- a/gcc/alloc-pool.h
+++ b/gcc/alloc-pool.h
@@ -1,5 +1,5 @@
/* Functions to support a pool of allocatable objects
- Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004
+ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2007
Free Software Foundation, Inc.
Contributed by Daniel Berlin <dan@cgsoftware.com>
@@ -37,7 +37,18 @@ typedef struct alloc_pool_def
ALLOC_POOL_ID_TYPE id;
#endif
size_t elts_per_block;
- alloc_pool_list free_list;
+
+ /* These are the elements that have been allocated at least once and freed. */
+ alloc_pool_list returned_free_list;
+
+ /* These are the elements that have not yet been allocated out of
+ the last block obtained from XNEWVEC. */
+ char* virgin_free_list;
+
+ /* The number of elements in the virgin_free_list that can be
+ allocated before needing another block. */
+ size_t virgin_elts_remaining;
+
size_t elts_allocated;
size_t elts_free;
size_t blocks_allocated;