Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2018-05-16 22:25:33 +0000
committerEugene Tarassov2018-05-16 22:25:33 +0000
commit352ad3620ce037979bee7a56fe9ca3b131782d02 (patch)
treec5ed42cc70580ba4b3cb533e4c4c8856a11ab7ca
parent670c4b4a63c39596f92243ad11ad061a630dd472 (diff)
downloadorg.eclipse.tcf.agent-352ad3620ce037979bee7a56fe9ca3b131782d02.tar.gz
org.eclipse.tcf.agent-352ad3620ce037979bee7a56fe9ca3b131782d02.tar.xz
org.eclipse.tcf.agent-352ad3620ce037979bee7a56fe9ca3b131782d02.zip
TCF Agent: increase MEM_USAGE_FACTOR when build for 64-bit machine
-rw-r--r--agent/tcf/framework/mdep.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/agent/tcf/framework/mdep.h b/agent/tcf/framework/mdep.h
index d72f6493..5147738a 100644
--- a/agent/tcf/framework/mdep.h
+++ b/agent/tcf/framework/mdep.h
@@ -332,7 +332,11 @@ extern int tkill(pid_t pid, int signal);
#endif
#ifndef MEM_USAGE_FACTOR
-# define MEM_USAGE_FACTOR 32
+# if defined(_WIN64) || (defined(__SIZEOF_POINTER__) && __SIZEOF_POINTER__ > 4)
+# define MEM_USAGE_FACTOR 128
+# else
+# define MEM_USAGE_FACTOR 32
+# endif
#endif
/* Convert the initial portion of the string pointed to by buf

Back to the top