mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
deps: V8: cherry-pick 5681a6565828
Original commit message:
[rab/gsab] Fix missing assignment in BackingStore::Reallocate
See https://github.com/nodejs/node/pull/39945
Bug: v8:11111
Change-Id: I7271a907bf036c18a014b2a13ff5746db622456a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3141581
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76670}
Refs: https://github.com/v8/v8/commit/5681a65658285af1aa7eb28530199ceeaa430cfe
PR-URL: https://github.com/nodejs/node/pull/39945
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -36,7 +36,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.9',
|
||||
'v8_embedder_string': '-node.10',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
Vendored
+2
-1
@@ -766,7 +766,7 @@ std::unique_ptr<BackingStore> BackingStore::EmptyBackingStore(
|
||||
|
||||
bool BackingStore::Reallocate(Isolate* isolate, size_t new_byte_length) {
|
||||
CHECK(!is_wasm_memory_ && !custom_deleter_ && !globally_registered_ &&
|
||||
free_on_destruct_);
|
||||
free_on_destruct_ && !is_resizable_);
|
||||
auto allocator = get_v8_api_array_buffer_allocator();
|
||||
CHECK_EQ(isolate->array_buffer_allocator(), allocator);
|
||||
CHECK_EQ(byte_length_, byte_capacity_);
|
||||
@@ -776,6 +776,7 @@ bool BackingStore::Reallocate(Isolate* isolate, size_t new_byte_length) {
|
||||
buffer_start_ = new_start;
|
||||
byte_capacity_ = new_byte_length;
|
||||
byte_length_ = new_byte_length;
|
||||
max_byte_length_ = new_byte_length;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user