Memory usage pattern of Built-in builder causes large size chunk pools by glibc pool management scheme.
It is not useful ,but just unnecessary expense.
so malloc_trim will help to reduce memory usage in this case.
Change-Id: Ia63fb2050b468e55cd6b740b6a26585ed8e824a5
Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
#include "glsl_parser_extras.h"
#include "program/prog_instruction.h"
#include <math.h>
+#include <malloc.h>
#include "builtin_functions.h"
#include "util/hash_table.h"
shader = NULL;
glsl_type_singleton_decref();
+ malloc_trim(0);
}
void