Memory management in 40 major C projects, a survey

(theconsensus.dev)

8 points | by eatonphil 14 hours ago ago

1 comments

  • tleb_ 12 hours ago

    Reading about the only project I know about: Linux. devm_kzalloc is not a region allocator in the traditional sense; the allocs are scattered (as usual) but we add a cleanup function to be called when the device lifetime expires. So there is no "region" anywhere in memory. BUT the main feature of region allocator as described in the intro still holds: "freeing a region frees all objects allocated within the region at once".