sglang_v0.5.2/pytorch_2.8.0/third_party/mimalloc/src/prim
hailin c8e8c1e9ff . 2025-09-20 16:09:34 +08:00
..
emscripten . 2025-09-20 16:09:34 +08:00
osx . 2025-09-20 16:09:34 +08:00
unix . 2025-09-20 16:09:34 +08:00
wasi . 2025-09-20 16:09:34 +08:00
windows . 2025-09-20 16:09:34 +08:00
prim.c . 2025-09-20 16:09:34 +08:00
readme.md . 2025-09-20 16:09:34 +08:00

readme.md

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.