1 /* -----------------------------------------------------------------------------
2 (c) The University of Glasgow 2001
4 Arena allocation interface.
5 -------------------------------------------------------------------------- */
10 // Abstract type of arenas
11 typedef struct _Arena Arena;
14 RTS_PRIVATE Arena * newArena ( void );
16 // Allocate memory in an arena
17 RTS_PRIVATE void * arenaAlloc ( Arena *, size_t );
19 // Free an entire arena
20 RTS_PRIVATE void arenaFree ( Arena * );
22 // For internal use only:
23 RTS_PRIVATE unsigned long arenaBlocks( void );