cpython/Objects/mimalloc/prim
Sam Gross 9afb0e1606
gh-112027: Don't print mimalloc warning after mmap() call (gh-113372)
gh-112027: Don't print mimalloc warning after mmap

This changes the warning to a "verbose"-level message in prim.c. The
address passed to mmap is only a hint -- it's normal for mmap() to
sometimes not respect the hint and return a different address.
2023-12-22 09:38:27 +09:00
..
osx gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
unix gh-112027: Don't print mimalloc warning after mmap() call (gh-113372) 2023-12-22 09:38:27 +09:00
wasi gh-90815: Fix mimalloc build on WASI (#111524) 2023-10-30 23:10:22 +01:00
windows gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
prim.c gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
readme.md gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00

Portability Primitives

This is the portability layer where all primitives needed from the OS are defined.

  • include/mimalloc/prim.h: primitive portability API definition.
  • prim.c: Selects one of unix/prim.c, wasi/prim.c, or windows/prim.c depending on the host platform (and on macOS, osx/prim.c defers to unix/prim.c).

Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's.