Merge "Increase 32-bit WebView VA reservation." into qt-dev
am: c7c7f9ecd7
Change-Id: I82628f43fe6e3f8d520424536d0b1918760e08e2
This commit is contained in:
committed by
android-build-merger
commit
e5b1bc3f5f
@@ -181,9 +181,9 @@ public class WebViewLibraryLoader {
|
|||||||
boolean is64Bit = VMRuntime.getRuntime().is64Bit();
|
boolean is64Bit = VMRuntime.getRuntime().is64Bit();
|
||||||
// On 64-bit address space is really cheap and we can reserve 1GB which is plenty.
|
// On 64-bit address space is really cheap and we can reserve 1GB which is plenty.
|
||||||
// On 32-bit it's fairly scarce and we should keep it to a realistic number that
|
// On 32-bit it's fairly scarce and we should keep it to a realistic number that
|
||||||
// permits some future growth but doesn't hog space: we use 100MB which is more than 2x
|
// permits some future growth but doesn't hog space: we use 130MB which is roughly
|
||||||
// the current requirement.
|
// what was calculated on older OS versions in practice.
|
||||||
long addressSpaceToReserve = is64Bit ? 1 * 1024 * 1024 * 1024 : 100 * 1024 * 1024;
|
long addressSpaceToReserve = is64Bit ? 1 * 1024 * 1024 * 1024 : 130 * 1024 * 1024;
|
||||||
sAddressSpaceReserved = nativeReserveAddressSpace(addressSpaceToReserve);
|
sAddressSpaceReserved = nativeReserveAddressSpace(addressSpaceToReserve);
|
||||||
|
|
||||||
if (sAddressSpaceReserved) {
|
if (sAddressSpaceReserved) {
|
||||||
|
|||||||
Reference in New Issue
Block a user