Path: blob/main/system/lib/mimalloc/src/static.c
6175 views
/* ----------------------------------------------------------------------------1Copyright (c) 2018-2020, Microsoft Research, Daan Leijen2This is free software; you can redistribute it and/or modify it under the3terms of the MIT license. A copy of the license can be found in the file4"LICENSE" at the root of this distribution.5-----------------------------------------------------------------------------*/6#ifndef _DEFAULT_SOURCE7#define _DEFAULT_SOURCE8#endif9#if defined(__sun)10// same remarks as os.c for the static's context.11#undef _XOPEN_SOURCE12#undef _POSIX_C_SOURCE13#endif1415#include "mimalloc.h"16#include "mimalloc/internal.h"1718// For a static override we create a single object file19// containing the whole library. If it is linked first20// it will override all the standard library allocation21// functions (on Unix's).22#include "alloc.c" // includes alloc-override.c23#include "alloc-aligned.c"24#include "alloc-posix.c"25#include "arena.c"26#include "bitmap.c"27#include "heap.c"28#include "init.c"29#include "libc.c"30#include "options.c"31#include "os.c"32#include "page.c" // includes page-queue.c33#include "random.c"34#include "segment.c"35#include "segment-map.c"36#include "stats.c"37#include "prim/prim.c"38#if MI_OSX_ZONE39#include "prim/osx/alloc-override-zone.c"40#endif414243