[heap] Throw OOM upon failing to expand a PagedSpace above old gen limits.
authormlippautz <mlippautz@chromium.org>
Wed, 2 Sep 2015 07:20:04 +0000 (00:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 2 Sep 2015 07:20:13 +0000 (07:20 +0000)
commit61d1cedfb81f302724bc1517ac3a43602efec8b5
tree9175337c34d36abb4b2339d4ba986648e4144f4e
parent038f5eaf3bd6796ed6b7519de83c21d4e1f54850
[heap] Throw OOM upon failing to expand a PagedSpace above old gen limits.

The AlwaysAllocate scope make it impossible to enforce a DCHECK on the maximum
old generation sizes as e.g. large objects can still be allocated using this
scope. Returning false here results in OOM.

R=mstarzinger@chromium.org
BUG=chromium:525448
LOG=N

Review URL: https://codereview.chromium.org/1316183004

Cr-Commit-Position: refs/heads/master@{#30535}
src/heap/spaces.cc
src/heap/spaces.h