1 | /* ---------------------------------------------------------------------------- |
2 | Copyright (c) 2018-2020, Microsoft Research, Daan Leijen |
3 | This is free software; you can redistribute it and/or modify it under the |
4 | terms of the MIT license. A copy of the license can be found in the file |
5 | "LICENSE" at the root of this distribution. |
6 | -----------------------------------------------------------------------------*/ |
7 | #ifndef _DEFAULT_SOURCE |
8 | #define _DEFAULT_SOURCE |
9 | #endif |
10 | #if defined(__sun) |
11 | // same remarks as os.c for the static's context. |
12 | #undef _XOPEN_SOURCE |
13 | #undef _POSIX_C_SOURCE |
14 | #endif |
15 | |
16 | #include "mimalloc.h" |
17 | #include "mimalloc-internal.h" |
18 | |
19 | // For a static override we create a single object file |
20 | // containing the whole library. If it is linked first |
21 | // it will override all the standard library allocation |
22 | // functions (on Unix's). |
23 | #include "stats.c" |
24 | #include "random.c" |
25 | #include "os.c" |
26 | #include "bitmap.c" |
27 | #include "arena.c" |
28 | #include "segment-cache.c" |
29 | #include "segment.c" |
30 | #include "page.c" |
31 | #include "heap.c" |
32 | #include "alloc.c" |
33 | #include "alloc-aligned.c" |
34 | #include "alloc-posix.c" |
35 | #if MI_OSX_ZONE |
36 | #include "alloc-override-osx.c" |
37 | #endif |
38 | #include "init.c" |
39 | #include "options.c" |
40 | |