1 /* Copyright (C) 2014 Matthew Fluet.
2 * Copyright (C) 1999-2006 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))
12 /* GC_init uses the array of struct intInfInits in s at program start
13 * to allocate intInfs.
14 * The globalIndex'th entry of the globals array in s is set to the
15 * IntInf.int whose value corresponds to the mlstr string.
17 * The strings pointed to by the mlstr fields consist of
20 * zero or more of [0-9]
23 struct GC_intInfInit
{
28 /* GC_init allocates a collection of arrays/vectors in the heap. */
29 struct GC_vectorInit
{
32 GC_arrayLength length
;
36 #endif /* (defined (MLTON_GC_INTERNAL_TYPES)) */
38 #if (defined (MLTON_GC_INTERNAL_FUNCS))
40 static inline size_t sizeofInitialBytesLive (GC_state s
);
41 static void initVectors (GC_state s
);
42 static void initWorld (GC_state s
);
44 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */