1 /* Copyright (C) 2012 Matthew Fluet.
2 * Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 * Copyright (C) 1997-2000 NEC Research Institute.
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
10 #if (defined (MLTON_GC_INTERNAL_TYPES))
17 #endif /* (defined (MLTON_GC_INTERNAL_TYPES)) */
19 #if (defined (MLTON_GC_INTERNAL_FUNCS))
21 static inline bool isPointerMarked (pointer p
);
22 static inline bool isPointerMarkedByMode (pointer p
, GC_markMode m
);
23 static size_t dfsMarkByMode (GC_state s
, pointer root
,
26 bool shouldLinkWeaks
);
27 static inline void dfsMarkWithHashConsWithLinkWeaks (GC_state s
, objptr
*opp
);
28 static inline void dfsMarkWithoutHashConsWithLinkWeaks (GC_state s
, objptr
*opp
);
30 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */