summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungguk Na <sungguk.na@samsung.com>2020-08-10 15:16:05 +0900
committerSooChan Lim <sc1.lim@samsung.com>2020-08-10 08:19:57 +0000
commit680fa24fe80339d50c676dab021fc0a163d9b258 (patch)
tree00cacb1b298c8029cec930ae27cc6df4a5b10fde
parent5865df6122a0aeeeeeca09e80dd8953bea13eb65 (diff)
downloadmesa-tizen_6.0.tar.gz
mesa-tizen_6.0.tar.bz2
mesa-tizen_6.0.zip
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>
-rw-r--r--src/compiler/glsl/builtin_functions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index e262a1ec780..e98983507e2 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -81,6 +81,7 @@
#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"
@@ -1296,6 +1297,7 @@ builtin_builder::release()
shader = NULL;
glsl_type_singleton_decref();
+ malloc_trim(0);
}
void