mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
parent
1feb6123d9
commit
4ba32c3160
21 changed files with 63 additions and 63 deletions
|
@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
#include <string.h> // memset
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
#if defined(MI_MALLOC_OVERRIDE)
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
// mi prefixed publi definitions of various Posix, Unix, and C++ functions
|
||||
// for convenience and used when overriding these functions.
|
||||
// ------------------------------------------------------------------------
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
// ------------------------------------------------------
|
||||
// Posix & Unix functions definitions
|
||||
|
|
|
@ -4,9 +4,9 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // memset, strlen
|
||||
#include <stdlib.h> // malloc, exit
|
||||
|
|
|
@ -25,9 +25,9 @@ blocks of 2GiB (64*32MiB) and no object can cross the boundary. This
|
|||
can lead to fragmentation but fortunately most objects will be regions
|
||||
of 256MiB in practice.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // memset
|
||||
#include <errno.h> // ENOMEM
|
||||
|
|
|
@ -17,8 +17,8 @@ The `_across` postfixed functions do allow sequences that can cross over
|
|||
between the fields. (This is used in arena allocation)
|
||||
---------------------------------------------------------------------------- */
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "bitmap.h"
|
||||
|
||||
/* -----------------------------------------------------------
|
||||
|
|
|
@ -5,9 +5,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // memset, memcpy
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
#include <string.h> // memcpy, memset
|
||||
#include <stdlib.h> // atexit
|
||||
|
|
|
@ -4,9 +4,9 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h> // strtol
|
||||
|
|
6
src/os.c
6
src/os.c
|
@ -16,9 +16,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
#undef _XOPEN_SOURCE
|
||||
#undef _POSIX_C_SOURCE
|
||||
#endif
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // strerror
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
exported is `mi_malloc_generic`.
|
||||
----------------------------------------------------------- */
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
/* -----------------------------------------------------------
|
||||
Definition of page queues for each block size
|
||||
|
|
|
@ -4,8 +4,8 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
#include <string.h> // memset
|
||||
|
||||
|
|
|
@ -31,9 +31,9 @@ Possible issues:
|
|||
linearly. At what point will direct OS calls be faster? Is there a way to
|
||||
do this better without adding too much complexity?
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // memset
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <string.h> // memset
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -13,8 +13,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
#undef _POSIX_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
|
||||
// For a static override we create a single object file
|
||||
// containing the whole library. If it is linked first
|
||||
|
|
|
@ -4,9 +4,9 @@ This is free software; you can redistribute it and/or modify it under the
|
|||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
-----------------------------------------------------------------------------*/
|
||||
#include "../include/mimalloc.h"
|
||||
#include "../include/mimalloc-internal.h"
|
||||
#include "../include/mimalloc-atomic.h"
|
||||
#include "mimalloc.h"
|
||||
#include "mimalloc-internal.h"
|
||||
#include "mimalloc-atomic.h"
|
||||
|
||||
#include <stdio.h> // fputs, stderr
|
||||
#include <string.h> // memset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue