mimalloc/src/prim
Daan 8ada517cf6
Merge pull request #859 from jmroot/pressure_relief
Fix min macOS for pressure_relief
2024-04-19 10:17:08 -07:00
..
emscripten add emscripten WASM support; this PR #822 written by Alon Zakai @kripken 2024-03-02 15:00:31 -08:00
osx Fix min macOS for pressure_relief 2024-03-05 01:12:06 +11:00
unix remove macOS preprocessor macros that do not exist (anymore). issue #879 2024-04-19 09:38:40 -07:00
wasi Fix undefined symbol errors when building for wasi #758, by @anuraaga 2024-03-02 17:05:29 -08:00
windows use most performant reset on Linux (MADV_FREE) and Windows (MEM_RESET) as we use the precise decommit by default for purging anyways 2023-04-24 08:56:42 -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.