Reserve code range block for evacuation.
authorulan <ulan@chromium.org>
Thu, 20 Nov 2014 14:52:23 +0000 (06:52 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Nov 2014 14:52:35 +0000 (14:52 +0000)
commitd703e87531e9565ca29e8b76dec9213397ac1536
tree3cbb672c320fd89d8dbbca191a4559f15836f124
parentb11825fe9460d98b0d95560f841641ce1be43d41
Reserve code range block for evacuation.

If we run out of code range, then GC wouldn't be able to compact code space,
because it wouldn't be able to allocate a new page. This can cause code space
fragmentation and OOM crashes.

BUG=chromium:430118
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#25441}
src/heap/mark-compact.cc
src/heap/spaces.cc
src/heap/spaces.h
test/cctest/test-spaces.cc