commit | c0c1092183ceb38dd4d70d2732dd3a743fefd567 | [log] [tgz] |
---|---|---|
author | Rebecca Schultz Zavin <rebecca@android.com> | Fri Oct 30 18:39:55 2009 -0700 |
committer | Rebecca Schultz Zavin <rebecca@android.com> | Thu Nov 12 16:31:12 2009 -0800 |
tree | 103ea3734dae9b26cbfd872cb65cdabf833e8dc0 | |
parent | ad55651fe7a0525bbf38efe47000a56685b6e81a [diff] |
Modify the binder to request 1M - 2 pages instead of 1M. The backing store in the kernel requires a guard page, so 1M allocations fragment memory very badly. Subtracting a couple of pages so that they fit in a power of two allows the kernel to make more efficient use of its virtual address space. Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>