Debian Codegraph @

external/bdwgc/extra/gc.c

raw
1 /*
2 * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
3 * Copyright (c) 1996 by Silicon Graphics. All rights reserved.
4 * Copyright (c) 1998 by Fergus Henderson. All rights reserved.
5 * Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
6 * All rights reserved.
7 *
8 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
9 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
10 *
11 * Permission is hereby granted to use or copy this program
12 * for any purpose, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
16 */
17
18 /* This file could be used for the following purposes: */
19 /* - get the complete GC as a single link object file (module); */
20 /* - enable more compiler optimizations. */
21
22 /* Tip: to get the highest level of compiler optimizations, the typical */
23 /* compiler options (GCC) to use are: */
24 /* -O3 -fno-strict-aliasing -march=native -Wall -fprofile-generate/use */
25
26 /* Warning: GCC for Linux (for C++ clients only): Use -fexceptions both */
27 /* for GC and the client otherwise GC_thread_exit_proc() is not */
28 /* guaranteed to be invoked (see the comments in pthread_start.c). */
29
30 #ifndef __cplusplus
31 /* static is desirable here for more efficient linkage. */
32 /* TODO: Enable this in case of the compilation as C++ code. */
33 # define GC_INNER STATIC
34 # define GC_EXTERN GC_INNER
35 /* STATIC is defined in gcconfig.h. */
36 #endif
37
38 /* Small files go first... */
39 #include "../backgraph.c"
40 #include "../blacklst.c"
41 #include "../checksums.c"
42 #include "../gcj_mlc.c"
43 #include "../headers.c"
44 #include "../new_hblk.c"
45 #include "../obj_map.c"
46 #include "../ptr_chck.c"
47
48 #include "gc_inline.h"
49 #include "../allchblk.c"
50 #include "../alloc.c"
51 #include "../dbg_mlc.c"
52 #include "../finalize.c"
53 #include "../fnlz_mlc.c"
54 #include "../malloc.c"
55 #include "../mallocx.c"
56 #include "../mark.c"
57 #include "../mark_rts.c"
58 #include "../reclaim.c"
59 #include "../typd_mlc.c"
60
61 #include "../misc.c"
62 #include "../os_dep.c"
63 #include "../thread_local_alloc.c"
64
65 /* Unity specific includes */
66 #include "../heapsections.c"
67 #include "../vector_mlc.c"
68
69 /* Most platform-specific files go here... */
70 #include "../darwin_stop_world.c"
71 #include "../dyn_load.c"
72 #include "../gc_dlopen.c"
73 #if !defined(PLATFORM_MACH_DEP)
74 #include "../mach_dep.c"
75 #endif
76 #if !defined(PLATFORM_STOP_WORLD)
77 #include "../pthread_stop_world.c"
78 #endif
79 #include "../pthread_support.c"
80 #include "../specific.c"
81 #include "../win32_threads.c"
82
83 #ifndef GC_PTHREAD_START_STANDALONE
84 # include "../pthread_start.c"
85 #endif
86
87 /* Restore pthread calls redirection (if altered in */
88 /* pthread_stop_world.c, pthread_support.c or win32_threads.c). */
89 /* This is only useful if directly included from application */
90 /* (instead of linking gc). */
91 #ifndef GC_NO_THREAD_REDIRECTS
92 # define GC_PTHREAD_REDIRECTS_ONLY
93 # include "gc_pthread_redirects.h"
94 #endif
95
96 /* The files from "extra" folder are not included. */