mimalloc/src/prim
2024-08-20 15:58:36 -07:00
..
emscripten move lock code to atomic.h 2024-06-01 17:25:45 -07:00
osx macOS: Fix linking statically 2024-05-15 21:12:54 +02:00
unix don't consider memory as large OS pages if only madvise'd 2024-08-20 15:58:36 -07:00
wasi move lock code to atomic.h 2024-06-01 17:25:45 -07:00
windows move lock code to atomic.h 2024-06-01 17:25:45 -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.