Commit d69637c authored and committed Jan 31, 2022
1 parent d2d03cf commit d69637c Copy full SHA for d69637c
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 66
66
'v8_enable_pointer_compression%' : 0 ,
67
67
'v8_enable_31bit_smis_on_64bit_arch%' : 0 ,
68
68
69
+ # Disable v8 hugepage by default.
70
+ 'v8_enable_hugepage%' : 0 ,
71
+
69
72
# This is more of a V8 dev setting
70
73
# https://github.com/nodejs/node/pull/22920/files#r222779926
71
74
'v8_enable_fast_mksnapshot' : 0 ,
Original file line number Diff line number Diff line change 776
776
default = True ,
777
777
help = 'compile V8 with auxiliar functions for native debuggers' )
778
778
779
+ parser .add_argument ('--v8-enable-hugepage' ,
780
+ action = 'store_true' ,
781
+ dest = 'v8_enable_hugepage' ,
782
+ default = None ,
783
+ help = 'Enable V8 transparent hugepage support. This feature is only ' +
784
+ 'available on Linux platform.' )
785
+
779
786
parser .add_argument ('--node-builtin-modules-path' ,
780
787
action = 'store' ,
781
788
dest = 'node_builtin_modules_path' ,
@@ -1434,7 +1441,9 @@ def configure_v8(o):
1434
1441
raise Exception ('--enable-d8 is incompatible with --without-bundled-v8.' )
1435
1442
if options .static_zoslib_gyp :
1436
1443
o ['variables' ]['static_zoslib_gyp' ] = options .static_zoslib_gyp
1437
-
1444
+ if flavor != 'linux' and options .v8_enable_hugepage :
1445
+ raise Exception ('--v8-enable-hugepage is supported only on linux.' )
1446
+ o ['variables' ]['v8_enable_hugepage' ] = 1 if options .v8_enable_hugepage else 0
1438
1447
1439
1448
def configure_openssl (o ):
1440
1449
variables = o ['variables' ]
You can’t perform that action at this time.
0 commit comments