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 70
70
# See https://github.com/v8/v8/wiki/Untrusted-code-mitigations
71
71
'v8_untrusted_code_mitigations' : 0 ,
72
72
73
+ # Disable v8 hugepage by default.
74
+ 'v8_enable_hugepage%' : 0 ,
75
+
73
76
# This is more of a V8 dev setting
74
77
# https://github.com/nodejs/node/pull/22920/files#r222779926
75
78
'v8_enable_fast_mksnapshot' : 0 ,
Original file line number Diff line number Diff line change 779
779
default = True ,
780
780
help = 'compile V8 with auxiliar functions for native debuggers' )
781
781
782
+ parser .add_argument ('--v8-enable-hugepage' ,
783
+ action = 'store_true' ,
784
+ dest = 'v8_enable_hugepage' ,
785
+ default = None ,
786
+ help = 'Enable V8 transparent hugepage support. This feature is only ' +
787
+ 'available on Linux platform.' )
788
+
782
789
parser .add_argument ('--node-builtin-modules-path' ,
783
790
action = 'store' ,
784
791
dest = 'node_builtin_modules_path' ,
@@ -1436,7 +1443,9 @@ def configure_v8(o):
1436
1443
raise Exception ('--enable-d8 is incompatible with --without-bundled-v8.' )
1437
1444
if options .static_zoslib_gyp :
1438
1445
o ['variables' ]['static_zoslib_gyp' ] = options .static_zoslib_gyp
1439
-
1446
+ if flavor != 'linux' and options .v8_enable_hugepage :
1447
+ raise Exception ('--v8-enable-hugepage is supported only on linux.' )
1448
+ o ['variables' ]['v8_enable_hugepage' ] = 1 if options .v8_enable_hugepage else 0
1440
1449
1441
1450
def configure_openssl (o ):
1442
1451
variables = o ['variables' ]
You can’t perform that action at this time.
0 commit comments