> Obviously this is a bad idea in certain circumstances
Like running your code on the most popular desktop OS in the world?
Re:Bump Allocation: Up or Down?
by thewakalix on Monday March 25, 2024 @07:45PM
(#39822579)
Does this technique rely on Linux-like overcommit?
In code, I essentially implement bump allocation (for a global allocator, though this could be adapted easily to reference an arena) in the following way:
I tend to use a huge value like 1GB for max_mem, which I know is extremely unlikely to be triggered when compiling a normal sized source program.