Skip to content

Commit 39d7699

Browse files
Junliang Yantargos
Junliang Yan
authored andcommitted
deps: cherry-pick d48bd16 from upstream V8
Original commit message: PPC: use 64KB ASLR hint on PPC Change-Id: I2e461f3f7b3abc666ed5dcc3294a14d27ef0fe60 Reviewed-on: https://chromium-review.googlesource.com/1194583 Reviewed-by: Michael Lippautz <[email protected]> Commit-Queue: Junliang Yan <[email protected]> Cr-Commit-Position: refs/heads/master@{#55655} Refs: v8/v8@d48bd16 PR-URL: #22909 Reviewed-By: Michaël Zasso <[email protected]>
1 parent c29734c commit 39d7699

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Reset this number to 0 on major V8 upgrades.
3131
# Increment by one for each non-official patch applied to deps/v8.
32-
'v8_embedder_string': '-node.28',
32+
'v8_embedder_string': '-node.29',
3333

3434
# Enable disassembler for `--print-code` v8 options
3535
'v8_enable_disassembler': 1,

deps/v8/src/base/platform/platform-posix.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ void* OS::GetRandomMmapAddr() {
246246
// Use extra address space to isolate the mmap regions.
247247
raw_addr += uint64_t{0x400000000000};
248248
#elif V8_TARGET_BIG_ENDIAN
249-
// Big-endian Linux: 44 bits of virtual addressing.
249+
// Big-endian Linux: 42 bits of virtual addressing.
250250
raw_addr &= uint64_t{0x03FFFFFFF000};
251251
#else
252-
// Little-endian Linux: 48 bits of virtual addressing.
253-
raw_addr &= uint64_t{0x3FFFFFFFF000};
252+
// Little-endian Linux: 46 bits of virtual addressing.
253+
raw_addr &= uint64_t{0x3FFFFFFF0000};
254254
#endif
255255
#elif V8_TARGET_ARCH_MIPS64
256256
// We allocate code in 256 MB aligned segments because of optimizations using

0 commit comments

Comments
 (0)