[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [freetype2] anuj-distance-field d97e060: [sdf] Added total memory al
From: |
Werner LEMBERG |
Subject: |
Re: [freetype2] anuj-distance-field d97e060: [sdf] Added total memory allocation log. |
Date: |
Thu, 16 Jul 2020 06:40:34 +0200 (CEST) |
> * src/sdf/ftsdf.c (*): Replaced `FT_QNEW' and `FT_ALLOC_MULT' to
> custom macros in order to track memory allocations throughout
> the process of generating SDF. It basically add the memory
> being allocated to a static global variable and at the end
> outputs it at the end.
I think having a global variable for that is a bad idea, even if it is
only active in debugging mode: If you have multiple threads you will
get nonsense information. Isn't it possible to add this variable to
one of the existing structures?
Werner
- Re: [freetype2] anuj-distance-field d97e060: [sdf] Added total memory allocation log.,
Werner LEMBERG <=