Github user PSUdaemon commented on the pull request: https://github.com/apache/trafficserver/pull/489#issuecomment-186967151 @jpeach, I can't speak to the relative ugliness of the code. It's fairly C-ish like the rest of our memory related code. I don't think the current implementation of ats_malloc tracks any size. I thought malloc had no specific guarantees on alignment, but usually provides 8 byte alignment? Perhaps @bryancall can move the extra byes to the end? Can you use `malloc_usable_size` on a specific category of memory allocation? Being able to pass in the counter here allows you to strictly control which allocations are being tracked.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---