| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1458,6 +1458,7 @@ def configure_v8(o): | |||
| 1458 | 1458 | o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1 | |
| 1459 | 1459 | o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0 | |
| 1460 | 1460 | o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 | |
| 1461 | + o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression else 1 | ||
| 1461 | 1462 | o['variables']['v8_trace_maps'] = 1 if options.trace_maps else 0 | |
| 1462 | 1463 | o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | |
| 1463 | 1464 | o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,7 @@ | |||
| 1 | + // Flags: --no-node-snapshot | ||
| 2 | + // With node snapshot the OOM can occur during the deserialization of the | ||
| 3 | + // context, so disable it since we want the OOM to occur during the creation of | ||
| 4 | + // the message port. | ||
| 1 | 5 | 'use strict'; | |
| 2 | 6 | const common = require('../common'); | |
| 3 | 7 | const assert = require('assert'); | |
@@ -11,10 +15,6 @@ if (!process.env.HAS_STARTED_WORKER) { | |||
| 11 | 15 | maxYoungGenerationSizeMb: 0, | |
| 12 | 16 | maxOldGenerationSizeMb: 0 | |
| 13 | 17 | }, | |
| 14 | - // With node snapshot the OOM can occur during the deserialization of | ||
| 15 | - // the context, so disable it since we want the OOM to occur during | ||
| 16 | - // the creation of the message port. | ||
| 17 | - execArgv: [ ...process.execArgv, '--no-node-snapshot'] | ||
| 18 | 18 | }; | |
| 19 | 19 | ||
| 20 | 20 | const worker = new Worker(__filename, opts); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -179,6 +179,10 @@ | |||
| 179 | 179 | # Controls the threshold for on-heap/off-heap Typed Arrays. | |
| 180 | 180 | 'v8_typed_array_max_size_in_heap%': 64, | |
| 181 | 181 | ||
| 182 | + # Enable sharing read-only space across isolates. | ||
| 183 | + # Sets -DV8_SHARED_RO_HEAP. | ||
| 184 | + 'v8_enable_shared_ro_heap%': 0, | ||
| 185 | + | ||
| 182 | 186 | # Enable lazy source positions by default. | |
| 183 | 187 | 'v8_enable_lazy_source_positions%': 1, | |
| 184 | 188 | ||
@@ -396,6 +400,9 @@ | |||
| 396 | 400 | ['v8_use_siphash==1', { | |
| 397 | 401 | 'defines': ['V8_USE_SIPHASH',], | |
| 398 | 402 | }], | |
| 403 | + ['v8_enable_shared_ro_heap==1', { | ||
| 404 | + 'defines': ['V8_SHARED_RO_HEAP',], | ||
| 405 | + }], | ||
| 399 | 406 | ['dcheck_always_on!=0', { | |
| 400 | 407 | 'defines': ['DEBUG',], | |
| 401 | 408 | }], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1757,6 +1757,7 @@ | |||
| 1757 | 1757 | 'v8_enable_verify_csa=<(v8_enable_verify_csa)', | |
| 1758 | 1758 | 'v8_enable_lite_mode=<(v8_enable_lite_mode)', | |
| 1759 | 1759 | 'v8_enable_pointer_compression=<(v8_enable_pointer_compression)', | |
| 1760 | + 'v8_enable_shared_ro_heap=<(v8_enable_shared_ro_heap)', | ||
| 1760 | 1761 | 'v8_enable_webassembly=<(v8_enable_webassembly)', | |
| 1761 | 1762 | # Not available in gyp. | |
| 1762 | 1763 | 'v8_control_flow_integrity=0', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments