Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8062bf

Browse filesBrowse files
qdaomingBethGriggs
authored andcommitted
build: add --v8-enable-hugepage flag
PR-URL: #41487 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent e1d5a35 commit e8062bf
Copy full SHA for e8062bf

File tree

Expand file treeCollapse file tree

2 files changed

+13
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-1
lines changed
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
'v8_enable_pointer_compression%': 0,
6767
'v8_enable_31bit_smis_on_64bit_arch%': 0,
6868

69+
# Disable v8 hugepage by default.
70+
'v8_enable_hugepage%': 0,
71+
6972
# This is more of a V8 dev setting
7073
# https://github.com/nodejs/node/pull/22920/files#r222779926
7174
'v8_enable_fast_mksnapshot': 0,
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,13 @@
775775
default=True,
776776
help='compile V8 with auxiliar functions for native debuggers')
777777

778+
parser.add_argument('--v8-enable-hugepage',
779+
action='store_true',
780+
dest='v8_enable_hugepage',
781+
default=None,
782+
help='Enable V8 transparent hugepage support. This feature is only '+
783+
'available on Linux platform.')
784+
778785
parser.add_argument('--node-builtin-modules-path',
779786
action='store',
780787
dest='node_builtin_modules_path',
@@ -1433,7 +1440,9 @@ def configure_v8(o):
14331440
raise Exception('--enable-d8 is incompatible with --without-bundled-v8.')
14341441
if options.static_zoslib_gyp:
14351442
o['variables']['static_zoslib_gyp'] = options.static_zoslib_gyp
1436-
1443+
if flavor != 'linux' and options.v8_enable_hugepage:
1444+
raise Exception('--v8-enable-hugepage is supported only on linux.')
1445+
o['variables']['v8_enable_hugepage'] = 1 if options.v8_enable_hugepage else 0
14371446

14381447
def configure_openssl(o):
14391448
variables = o['variables']

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.