File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1001,6 +1001,10 @@ def configure_v8(o):
1001
1001
o[' variables' ][' node_use_bundled_v8' ] = b(not options.without_bundled_v8)
1002
1002
o[' variables' ][' force_dynamic_crt' ] = 1 if options.shared else 0
1003
1003
o[' variables' ][' node_enable_d8' ] = b(options.enable_d8)
1004
+ # Unconditionally force typed arrays to allocate outside the v8 heap. This
1005
+ # is to prevent memory pointers from being moved around that are returned by
1006
+ # Buffer::Data().
1007
+ o[' variables' ][' v8_typed_array_max_size_in_heap' ] = 0
1004
1008
if options.enable_d8:
1005
1009
o[' variables' ][' test_isolation_mode' ] = ' noop' # Needed by d8.gyp.
1006
1010
if options.without_bundled_v8 and options.enable_d8:
Original file line number Diff line number Diff line change @@ -4677,12 +4677,6 @@ void Init(int* argc,
4677
4677
}
4678
4678
#endif
4679
4679
4680
- // Unconditionally force typed arrays to allocate outside the v8 heap. This
4681
- // is to prevent memory pointers from being moved around that are returned by
4682
- // Buffer::Data().
4683
- const char no_typed_array_heap[] = " --typed_array_max_size_in_heap=0" ;
4684
- V8::SetFlagsFromString (no_typed_array_heap, sizeof (no_typed_array_heap) - 1 );
4685
-
4686
4680
// We should set node_is_initialized here instead of in node::Start,
4687
4681
// otherwise embedders using node::Init to initialize everything will not be
4688
4682
// able to set it and native modules will not load for them.
You can’t perform that action at this time.
0 commit comments