mimalloc/src/prim
2023-04-30 13:41:19 -07:00
..
osx alloc-override-zone.c: fix for 10.6 rosetta/ppc 2023-04-15 07:07:25 +08:00
unix check for remap support 2023-04-30 13:41:19 -07:00
wasi check for remap support 2023-04-30 13:41:19 -07:00
windows check for remap support 2023-04-30 13:41:19 -07:00
prim.c add prim/osx directory 2023-03-20 10:49:56 -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.