blob: 8a7b304a7a47d62287641644ffecbbc9dfc235c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* -----------------------------------------------------------------------------
(c) The University of Glasgow 2001
Arena allocation interface.
-------------------------------------------------------------------------- */
#pragma once
// Abstract type of arenas
typedef struct _Arena Arena;
// Start a new arena
Arena * newArena ( void );
// Allocate memory in an arena
void * arenaAlloc ( Arena *, size_t );
// Free an entire arena
void arenaFree ( Arena * );
// For internal use only:
RTS_PRIVATE unsigned long arenaBlocks( void );
#if defined(DEBUG)
void checkPtrInArena( StgPtr p, Arena *arena );
#endif
|