Increase the simulated memory size on PLATFORM(IOS_SIMULATOR) from 512MB to 1024MB
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 May 2018 17:39:03 +0000 (17:39 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 May 2018 17:39:03 +0000 (17:39 +0000)
commita6cd87750dd1edbf14e0545b93e16bb52c56003f
tree73537c0f239d8419a0cd42e14e0d1772282fd59d
parent54100de4efbad361bb96feda85f173dbc28f3efd
Increase the simulated memory size on PLATFORM(IOS_SIMULATOR) from 512MB to 1024MB
https://bugs.webkit.org/show_bug.cgi?id=185908

Reviewed by Geoffrey Garen.

Source/bmalloc:

We don't support 512MB devices anymore. This will make the simulator behave more
like a real device.

* bmalloc/AvailableMemory.cpp:
(bmalloc::memorySizeAccordingToKernel):

Factor to a function.
Don't use availableMemoryGuess for the simulator value as it is not a guess.

(bmalloc::computeAvailableMemory):

Apply the same adjustments to the simulated value too.

LayoutTests:

* platform/ios-simulator/fast/canvas/canvas-crash-expected.txt:
* platform/ios-simulator/fast/canvas/canvas-skia-excessive-size-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/ios-simulator/fast/canvas/canvas-crash-expected.txt
LayoutTests/platform/ios-simulator/fast/canvas/canvas-skia-excessive-size-expected.txt
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/AvailableMemory.cpp