You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/09/08 20:12:43 UTC

[GitHub] [trafficserver] SolidWallOfCode commented on issue #5155: Arena::free just set the last ArenaBlock's m_water_level

SolidWallOfCode commented on issue #5155:
URL: https://github.com/apache/trafficserver/issues/5155#issuecomment-915537074


   My `MemArena` doesn't do that either. The problem is finding the appropriate block, which requires walking all the blocks. For performance reasons, `MemArena` has the concept of a "full" block and never looks at those again. Non-stacking de-allocation
   would be more trouble than it's worth for that implementation. One of the costs of using memory arenas like this is the inability
   to release memory. In fact, `MemArena` doesn't have any de-allocation at all. Instead there is direct access to the unused part
   of a block, which can be used without allocation, or used and then allocated. Overall I think it will work better.
   
   [Documentation](http://docs.solidwallofcode.com/libswoc/code/MemArena.en.html).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org