Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ac7fb5a authored by Ganesh Mahendran's avatar Ganesh Mahendran
Browse files

libbinder: use sysconf(_SC_PAGESIZE) to get pagesize



pagesize is not always 4KB, use sysconf(_SC_PAGESIZE) to get
real pagesize.

Change-Id: Ib2c82c3a842257601a5c304da3a1f0b07c6ab8c0
Signed-off-by: default avatarGanesh Mahendran <opensource.ganesh@gmail.com>
parent 074c1cd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

// -------------------------------------------------------------------------