| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index 0b353b70f1d269a79b747f65cedc23fc0d487958..943a30fc7abb03313e082a357da4014e545b0e54 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -1086,7 +1086,13 @@ class Heap {
|
|
|
| static const int kInitalOldGenerationLimitFactor = 2;
|
|
|
| +#if V8_OS_ANDROID
|
| + // Don't apply pointer multiplier on Android since it has no swap space and
|
| + // should instead adapt it's heap size based on available physical memory.
|
| + static const int kPointerMultiplier = 1;
|
| +#else
|
| static const int kPointerMultiplier = i::kPointerSize / 4;
|
| +#endif
|
|
|
| // The new space size has to be a power of 2. Sizes are in MB.
|
| static const int kMaxSemiSpaceSizeLowMemoryDevice = 1 * kPointerMultiplier;
|
|
|