thi-ng/tinyalloc
View on GitHub ↗ ★ 819 C
malloc / free replacement for unmanaged, linear memory situations (e.g. WASM, embedded devices...)
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2019-01-06 · latest 2019-01-07
20082026
-
…is enabled, else it's O(1), i.e. a simple cons of the freed block addr to the free list ( https://github.com/thi-ng/tinyalloc/blob/master/tinyalloc.c#... ) 2) there's no hardcoded alignment (it's configurable via TA_ALIGN macro) and I'm…
comment by toxmeister · 2019-01-07 · in Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations -
Thanks. In my defense, GitHub search is garbage: https://github.com/thi-ng/tinyalloc/search?q=Heap&unscoped_q...
comment by saagarjha · 2019-01-06 · in Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations -
https://github.com/thi-ng/tinyalloc/blob/master/tinyalloc.c#...
comment by Ace17 · 2019-01-06 · in Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations