mimalloc/src/prim
2025-01-22 12:03:58 -08:00
..
emscripten add address hint to primitive allocation API 2024-11-16 16:57:37 -08:00
osx update comments, set constructor priority to 101 on macOS 2024-10-27 21:10:46 -07:00
unix fix large OS page behaviour on Linux; default is now 2 which only uses large OS pages (not huge) through madvise 2025-01-03 20:00:40 -08:00
wasi add address hint to primitive allocation API 2024-11-16 16:57:37 -08:00
windows check dynamically for getPhysicallyInstalledSystemMemory on windows (issue #992) 2025-01-22 12:03:58 -08:00
prim.c update comments, set constructor priority to 101 on macOS 2024-10-27 21:10:46 -07: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.