Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / gc.c
1 /* Copyright (C) 2012,2014 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.
5 *
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
8 */
9
10 #define MLTON_GC_INTERNAL_TYPES
11 #define MLTON_GC_INTERNAL_FUNCS
12 #define MLTON_GC_INTERNAL_BASIS
13 #include "platform.h"
14
15 #if ASSERT
16 #define ARG_USED_FOR_ASSERT
17 #define LOCAL_USED_FOR_ASSERT
18 #else
19 #define ARG_USED_FOR_ASSERT __attribute__ ((unused))
20 #define LOCAL_USED_FOR_ASSERT __attribute__ ((unused))
21 #endif
22
23 #include "gc/virtual-memory.c"
24 #include "gc/align.c"
25 #include "gc/read_write.c"
26
27 #include "gc/array-allocate.c"
28 #include "gc/array.c"
29 #include "gc/atomic.c"
30 #include "gc/call-stack.c"
31 #include "gc/cheney-copy.c"
32 #include "gc/controls.c"
33 #include "gc/copy-thread.c"
34 #include "gc/current.c"
35 #include "gc/dfs-mark.c"
36 #include "gc/done.c"
37 #include "gc/enter_leave.c"
38 #include "gc/foreach.c"
39 #include "gc/forward.c"
40 #include "gc/frame.c"
41 #include "gc/garbage-collection.c"
42 #include "gc/gc_state.c"
43 #include "gc/generational.c"
44 #include "gc/handler.c"
45 #include "gc/hash-cons.c"
46 #include "gc/heap.c"
47 #include "gc/heap_predicates.c"
48 #include "gc/init-world.c"
49 #include "gc/init.c"
50 #include "gc/int-inf.c"
51 #include "gc/invariant.c"
52 #include "gc/mark-compact.c"
53 #include "gc/model.c"
54 #include "gc/new-object.c"
55 #include "gc/object-size.c"
56 #include "gc/object.c"
57 #include "gc/objptr.c"
58 #include "gc/pack.c"
59 #include "gc/pointer.c"
60 #include "gc/profiling.c"
61 #include "gc/rusage.c"
62 #include "gc/share.c"
63 #include "gc/signals.c"
64 #include "gc/size.c"
65 #include "gc/sources.c"
66 #include "gc/stack.c"
67 #include "gc/switch-thread.c"
68 #include "gc/thread.c"
69 #include "gc/translate.c"
70 #include "gc/weak.c"
71 #include "gc/world.c"