Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/mimalloc/src/static.c
6175 views
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 "alloc.c" // includes alloc-override.c
24
#include "alloc-aligned.c"
25
#include "alloc-posix.c"
26
#include "arena.c"
27
#include "bitmap.c"
28
#include "heap.c"
29
#include "init.c"
30
#include "libc.c"
31
#include "options.c"
32
#include "os.c"
33
#include "page.c" // includes page-queue.c
34
#include "random.c"
35
#include "segment.c"
36
#include "segment-map.c"
37
#include "stats.c"
38
#include "prim/prim.c"
39
#if MI_OSX_ZONE
40
#include "prim/osx/alloc-override-zone.c"
41
#endif
42
43