> You can only deallocate everything in the arena, not individual parts of it.
Untrue; this excludes the middle. GNU Obstack is a widely-used arena allocator with a "free everything allocated after this point" operation, among others.
grandempire 7 minutes ago [-]
This is arguing about the definition of an Arena.
It’s like if I say a stack only has push and pop, and you tell me you can search though and find another element.
tonyedgecombe 1 hours ago [-]
PostScript does something similar with its save and restore operators.
Rendered at 22:01:33 GMT+0000 (Coordinated Universal Time) with Vercel.
https://github.com/codr7/hacktical-c/tree/main/malloc1
https://github.com/codr7/hacktical-c/tree/main/malloc2
Untrue; this excludes the middle. GNU Obstack is a widely-used arena allocator with a "free everything allocated after this point" operation, among others.
It’s like if I say a stack only has push and pop, and you tell me you can search though and find another element.