| Index: base/sys_info_android.cc
|
| diff --git a/base/sys_info_android.cc b/base/sys_info_android.cc
|
| index 53801703845c972ff6449fea1da152427af674e5..7840250f04779e095e1952d83e93f3f700e04152 100644
|
| --- a/base/sys_info_android.cc
|
| +++ b/base/sys_info_android.cc
|
| @@ -79,6 +79,12 @@ int GetDalvikHeapSizeMB() {
|
| return ParseHeapSize(heap_size_str);
|
| }
|
|
|
| +int GetDalvikHeapGrowthLimitMB() {
|
| + char heap_size_str[PROP_VALUE_MAX];
|
| + __system_property_get("dalvik.vm.heapgrowthlimit", heap_size_str);
|
| + return ParseHeapSize(heap_size_str);
|
| +}
|
| +
|
| } // anonymous namespace
|
|
|
| namespace base {
|
| @@ -122,4 +128,10 @@ int SysInfo::DalvikHeapSizeMB() {
|
| return heap_size;
|
| }
|
|
|
| +int SysInfo::DalvikHeapGrowthLimitMB() {
|
| + static int heap_growth_limit = GetDalvikHeapGrowthLimitMB();
|
| + return heap_growth_limit;
|
| +}
|
| +
|
| +
|
| } // namespace base
|
|
|