a8ae85df519453bec559669fecc3f2f8c4aa6248
[ghc.git] / rts / sm / ShouldCompact.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 2016
4 *
5 * GC support for immutable non-GCed structures
6 *
7 * Documentation on the architecture of the Garbage Collector can be
8 * found in the online commentary:
9 *
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #ifndef SM_SHOULDCOMPACT_H
15 #define SM_SHOULDCOMPACT_H
16
17 #define SHOULDCOMPACT_STATIC 0
18 #define SHOULDCOMPACT_IN_CNF 1
19 #define SHOULDCOMPACT_NOTIN_CNF 2
20 #define SHOULDCOMPACT_PINNED 3
21
22 #ifndef CMINUSMINUS
23 extern StgWord shouldCompact (StgCompactNFData *str, StgClosure *p);
24 #endif
25
26 #endif