summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Ganesh Mahendran <opensource.ganesh@gmail.com> 2017-03-08 16:33:00 +0000
committer android-build-merger <android-build-merger@google.com> 2017-03-08 16:33:00 +0000
commitd86505e9ac91e0f0bbc381659f70cb1f7cb3176c (patch)
tree08ac2736bee451a5b285fd88802332eb4f3674f2 /libs/binder/ProcessState.cpp
parent110c3baf58aeef284f08a85d730898aaeb65c8ba (diff)
parent391becb8a7f0f8c179527d5b9ce32f81ee48a4cf (diff)
Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f am: f83403fdd2
am: 391becb8a7 Change-Id: I11546e02a736bd6c6ece606831462f7ef85c4ec4
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index fe28533ba8..98107c578d 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -40,7 +40,7 @@
#include <sys/stat.h>
#include <sys/types.h>
-#define BINDER_VM_SIZE ((1*1024*1024) - (4096 *2))
+#define BINDER_VM_SIZE ((1 * 1024 * 1024) - sysconf(_SC_PAGE_SIZE) * 2)
#define DEFAULT_MAX_BINDER_THREADS 15
// -------------------------------------------------------------------------