Explorar o código

parse_env: use the knobs defguard on SYS_ALLOC_SIZE

Ioannis Koutras %!s(int64=11) %!d(string=hai) anos
pai
achega
f70c26e88d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/parse_env.c

+ 2 - 0
src/parse_env.c

@@ -79,6 +79,7 @@ void parse_env(void) {
     }
 #endif /* WITH_KNOBS && GOOD_FIT */
 
+#ifdef WITH_KNOBS
     env = getenv("DMMLIB_SYSALLOC_SZ");
 
     if(env != NULL) {
@@ -88,6 +89,7 @@ void parse_env(void) {
             systemallocator.dmm_knobs.sys_alloc_size = (double) num;
         }
     }
+#endif /* WITH_KNOBS */
 
     systemallocator.initialized = true;