mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
make mimalloc includes relative to the current file, upstream of python/cpython#113141
This commit is contained in:
parent
92a8268fa4
commit
381da05d8a
2 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,8 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
// functions and macros.
|
// functions and macros.
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "mimalloc/types.h"
|
#include "types.h"
|
||||||
#include "mimalloc/track.h"
|
#include "track.h"
|
||||||
|
|
||||||
#if (MI_DEBUG>0)
|
#if (MI_DEBUG>0)
|
||||||
#define mi_trace_message(...) _mi_trace_message(__VA_ARGS__)
|
#define mi_trace_message(...) _mi_trace_message(__VA_ARGS__)
|
||||||
|
|
|
@ -23,7 +23,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
|
|
||||||
#include <stddef.h> // ptrdiff_t
|
#include <stddef.h> // ptrdiff_t
|
||||||
#include <stdint.h> // uintptr_t, uint16_t, etc
|
#include <stdint.h> // uintptr_t, uint16_t, etc
|
||||||
#include "mimalloc/atomic.h" // _Atomic
|
#include "atomic.h" // _Atomic
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4214) // bitfield is not int
|
#pragma warning(disable:4214) // bitfield is not int
|
||||||
|
@ -387,7 +387,7 @@ typedef struct mi_memid_s {
|
||||||
// Segments contain mimalloc pages
|
// Segments contain mimalloc pages
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
|
||||||
// Segments are large allocated memory blocks (2MiB on 64 bit) from the OS.
|
// Segments are large allocated memory blocks (2MiB on 64 bit) from the OS.
|
||||||
// Inside segments we allocated fixed size _pages_ that contain blocks.
|
// Inside segments we allocated fixed size _pages_ that contain blocks.
|
||||||
typedef struct mi_segment_s {
|
typedef struct mi_segment_s {
|
||||||
// constant fields
|
// constant fields
|
||||||
|
|
Loading…
Add table
Reference in a new issue