OSDN Git Service

When aliasing a bitmap, use smallest available limit.
authorCarl Shapiro <cshapiro@google.com>
Sat, 10 Jul 2010 00:41:26 +0000 (17:41 -0700)
committerCarl Shapiro <cshapiro@google.com>
Sat, 10 Jul 2010 00:41:30 +0000 (17:41 -0700)
commit740cd296284e682d9d92bd638d266efccf817bbe
tree4ec589dd3e06735dd6bbe702e8edec59ed2d1c23
parent99fc4560d75078b92daea33795489ac477e26cda
When aliasing a bitmap, use smallest available limit.

The original implementation of the bitmap aliasing routine chose the
conservative max value of the heap limit.  This is perfect for the
zygote but is oversized for application heaps that are not anywhere
near full.  Now the code consults the live bitmap and will use its max
value if it is smaller than the heap limit.

Change-Id: I7cf223efdeaed318922a8a5f9e147092e539da6c
vm/alloc/HeapSource.c