[Mesa-dev] [PATCH] mesa: Remove the ralloc canary on release builds.

Kenneth Graunke kenneth at whitecape.org
Fri Nov 22 00:50:01 PST 2013


On 11/22/2013 12:21 AM, Eric Anholt wrote:
> The canary is basically just to give a better debugging message when you
> ralloc_free() something that wasn't rallocated.  Reduces maximum memory
> usage of apitrace replay of the dota2 demo by 60MB on my 64-bit system (so
> half that on a real 32-bit dota2 environment).

Really, half?  It's an unsigned...that's 4 bytes regardless of 64-bit
vs. 32-bit.  I think this should be 60MB of savings, end of story.

--Ken


More information about the mesa-dev mailing list