mimalloc/src/prim
2024-05-18 16:45:23 -07:00
..
emscripten rename must_free_whole -> has_partial_free 2024-05-16 14:41:10 -07:00
osx Fix min macOS for pressure_relief 2024-03-05 01:12:06 +11:00
unix make warning an trace message if we cannot allocate at a hinted address, upstream of python/cpython#113372 2024-05-18 16:45:23 -07:00
wasi rename must_free_whole -> has_partial_free 2024-05-16 14:41:10 -07:00
windows make retry on oom an option; revise size options to not overflow the long 2024-05-18 09:56:02 -07:00
prim.c add emscripten WASM support; this PR #822 written by Alon Zakai @kripken 2024-03-02 15:00:31 -08:00
readme.md comments 2023-03-20 11:30:52 -07: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.