diff options
author | Anna Henningsen <anna.henningsen@mongodb.com> | 2022-12-21 20:16:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 19:16:56 +0000 |
commit | eb5895ae3ebbff2542b564276b792d2d705d4f21 (patch) | |
tree | e06dfdef659be75587d896f64a5cf25312ee2934 /configure.py | |
parent | 01323d50c4b24cf730a651d06ba20633905ecbed (diff) | |
download | node-new-eb5895ae3ebbff2542b564276b792d2d705d4f21.tar.gz |
build: add option to disable shared readonly heap
PR-URL: https://github.com/nodejs/node/pull/45887
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 1c01c6fdb2..c1d8815fc0 100755 --- a/configure.py +++ b/configure.py @@ -484,6 +484,12 @@ parser.add_argument('--experimental-enable-pointer-compression', default=None, help='[Experimental] Enable V8 pointer compression (limits max heap to 4GB and breaks ABI compatibility)') +parser.add_argument('--disable-shared-readonly-heap', + action='store_true', + dest='disable_shared_ro_heap', + default=None, + help='Disable the shared read-only heap feature in V8') + parser.add_argument('--v8-options', action='store', dest='v8_options', @@ -1471,7 +1477,7 @@ def configure_v8(o): o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1 o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0 o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 - o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression else 1 + o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1 o['variables']['v8_trace_maps'] = 1 if options.trace_maps else 0 o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) |