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

Issue 2488403003: Add v8_os_page_size flag for cross compilation (Closed)

Created:
4 years, 1 month ago by miran.karic
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, Michael Hablich
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add v8_os_page_size flag for cross compilation When generating snapshot on a machine with a different page size than the target machine, we can run into problems as the v8 page area size changes. This is because v8 has page guards which depend on os page size, so if the target has larger os page, v8 page area is smaller and may not fit the contents. The solution proposed here is adding a flag, v8_os_page_size, that would, if used, override local os page size and use the one specified during snapshot generation. BUG= Committed: https://crrev.com/a18be72c8e7ecc3e6b0803c2287a8bbf4640a754 Cr-Commit-Position: refs/heads/master@{#40997}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 3

Patch Set 3 : Flag in KBytes, add DCHECK #

Patch Set 4 : merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -21 lines) Patch
M BUILD.gn View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M Makefile View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/heap/spaces.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/heap/spaces.cc View 1 2 3 11 chunks +24 lines, -15 lines 0 comments Download
M src/v8.gyp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
miran.karic
PTAL. Feel free to suggest changes in flag name and description as well as in ...
4 years, 1 month ago (2016-11-11 15:09:16 UTC) #2
Michael Lippautz
+machenbach https://codereview.chromium.org/2488403003/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2488403003/diff/1/BUILD.gn#newcode69 BUILD.gn:69: target_os_page_size = "0" I'd make this v8_target_os_page_size. Not ...
4 years, 1 month ago (2016-11-14 09:24:44 UTC) #4
Michael Achenbach
https://codereview.chromium.org/2488403003/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2488403003/diff/1/BUILD.gn#newcode69 BUILD.gn:69: target_os_page_size = "0" On 2016/11/14 09:24:43, Michael Lippautz wrote: ...
4 years, 1 month ago (2016-11-14 09:59:02 UTC) #5
miran.karic
Done. Also fixed a typo and moved v8_os_page_size flag in flag-definitions.h to flags in all ...
4 years, 1 month ago (2016-11-14 15:39:59 UTC) #6
Michael Lippautz
lgtm % comments https://codereview.chromium.org/2488403003/diff/20001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2488403003/diff/20001/src/flag-definitions.h#newcode771 src/flag-definitions.h:771: DEFINE_INT(v8_os_page_size, 0, "override os page size ...
4 years, 1 month ago (2016-11-14 16:04:08 UTC) #8
miran.karic
On 2016/11/14 16:04:08, Michael Lippautz wrote: > lgtm % comments > > https://codereview.chromium.org/2488403003/diff/20001/src/flag-definitions.h > File ...
4 years, 1 month ago (2016-11-14 16:40:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488403003/40001
4 years, 1 month ago (2016-11-15 13:08:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/builds/11969) v8_linux_mips64el_compile_rel on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-15 13:10:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488403003/60001
4 years, 1 month ago (2016-11-15 14:12:37 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-15 14:40:09 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:34:19 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a18be72c8e7ecc3e6b0803c2287a8bbf4640a754
Cr-Commit-Position: refs/heads/master@{#40997}

Powered by Google App Engine
This is Rietveld 408576698