Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 742733002: Reserve code range block for evacuation. (Closed)

Created:
6 years, 1 month ago by ulan
Modified:
6 years, 1 month ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://chromium.googlesource.com/v8/v8/+/4fbbd29403f86699c1734685ee7c6a61ff74ac82

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Add test, address comments #

Patch Set 4 : Remove test #

Patch Set 5 : Fix test/cctest/test-spaces.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -23 lines) Patch
M src/heap/mark-compact.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap/spaces.h View 1 2 4 chunks +12 lines, -0 lines 0 comments Download
M src/heap/spaces.cc View 1 2 5 chunks +60 lines, -22 lines 0 comments Download
M test/cctest/test-spaces.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
ulan
By setting code range size to 32MB, I can easily trigger OOM crash in gmail ...
6 years, 1 month ago (2014-11-19 16:37:52 UTC) #2
Erik Corry
You should be able to simulate code space fragmentation with regexps. var re_source = "."; ...
6 years, 1 month ago (2014-11-19 17:02:48 UTC) #4
Hannes Payer (out of office)
Awesome catch! LGTM, just nits. A regression test would be amazing, can you try Erik's ...
6 years, 1 month ago (2014-11-20 08:00:37 UTC) #5
ulan
Thanks, Erik and Hannes! I tried RegExp and eval for generating code and ended up ...
6 years, 1 month ago (2014-11-20 13:49:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742733002/80001
6 years, 1 month ago (2014-11-20 14:07:05 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 14:52:36 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001)

Powered by Google App Engine
This is Rietveld 408576698