summaryrefslogtreecommitdiff
path: root/rts/sm/BlockAlloc.h
blob: 86836e40b47da6b2eb7beab44bdfc3dd46ebe862 (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
27
28
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-1999
 *
 * Block Allocator Interface
 *
 * ---------------------------------------------------------------------------*/

#ifndef BLOCK_ALLOC_H
#define BLOCK_ALLOC_H

#pragma GCC visibility push(hidden)

/* Debugging  -------------------------------------------------------------- */

#ifdef DEBUG
void checkFreeListSanity(void);
nat  countFreeList(void);
void markBlocks (bdescr *bd);
void reportUnmarkedBlocks (void);
#endif

extern lnat n_alloc_blocks;   // currently allocated blocks
extern lnat hw_alloc_blocks;  // high-water allocated blocks

#pragma GCC visibility pop

#endif /* BLOCK_ALLOC_H */