diff options
author | Sungguk Na <sungguk.na@samsung.com> | 2020-08-10 15:16:05 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2020-08-10 08:19:57 +0000 |
commit | 680fa24fe80339d50c676dab021fc0a163d9b258 (patch) | |
tree | 00cacb1b298c8029cec930ae27cc6df4a5b10fde | |
parent | 5865df6122a0aeeeeeca09e80dd8953bea13eb65 (diff) | |
download | mesa-accepted/tizen_6.0_unified_hotfix.tar.gz mesa-accepted/tizen_6.0_unified_hotfix.tar.bz2 mesa-accepted/tizen_6.0_unified_hotfix.zip |
Add malloc_trim after builtin_builder release.tizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.115103submit/tizen_6.0_hotfix/20201102.192903submit/tizen_6.0/20201029.205503submit/tizen/20200810.080631accepted/tizen/unified/20200812.144044accepted/tizen/6.0/unified/hotfix/20201102.231453accepted/tizen/6.0/unified/20201030.111214tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
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.cpp | 2 |
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 |