summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-12-21 10:06:32 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-12-21 15:44:15 +0900
commitffefbe0718c4821b7beb886b7a3630a63e8fe54c (patch)
tree5396a5c5b8ca562e97c18cb7bdab480eb4a8480d /src/lib/eina
parent1d4affadd1957500eaa8b33e9c89174c613e34a4 (diff)
eina freeq - add explicit bypass on/off env var controls
this fixes T5032
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_freeq.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/lib/eina/eina_freeq.c b/src/lib/eina/eina_freeq.c
index 49fdb0b94a..c1aff8925c 100644
--- a/src/lib/eina/eina_freeq.c
+++ b/src/lib/eina/eina_freeq.c
@@ -149,12 +149,23 @@ eina_freeq_new(void)
149 if (_eina_freeq_bypass == -1) 149 if (_eina_freeq_bypass == -1)
150 { 150 {
151 const char *s; 151 const char *s;
152 152 int v;
153 if (getenv("EINA_FREEQ_BYPASS")) _eina_freeq_bypass = 1; 153
154 s = getenv("EINA_FREEQ_BYPASS");
155 if (s)
156 {
157 v = atoi(s);
158 if (v == 0) _eina_freeq_bypass = 0;
159 else _eina_freeq_bypass = 1;
160 }
161 if (_eina_freeq_bypass == -1)
162 {
154#ifdef HAVE_VALGRIND 163#ifdef HAVE_VALGRIND
155 else if (RUNNING_ON_VALGRIND) _eina_freeq_bypass = 1; 164 if (RUNNING_ON_VALGRIND) _eina_freeq_bypass = 1;
165 else
156#endif 166#endif
157 else _eina_freeq_bypass = 0; 167 _eina_freeq_bypass = 0;
168 }
158 s = getenv("EINA_FREEQ_FILL_MAX"); 169 s = getenv("EINA_FREEQ_FILL_MAX");
159 if (s) _eina_freeq_fillpat_max = atoi(s); 170 if (s) _eina_freeq_fillpat_max = atoi(s);
160 s = getenv("EINA_FREEQ_TOTAL_MAX"); 171 s = getenv("EINA_FREEQ_TOTAL_MAX");