deps: backport 8d6a228 from the v8's upstream · nodejs/node@cadee67 · GitHub
Skip to content

Commit cadee67

Browse files
indutnyjasnell
authored andcommitted
deps: backport 8d6a228 from the v8's upstream
Original commit message: [heap] fix crash during the scavenge of ArrayBuffer Scavenger should not attempt to visit ArrayBuffer's storage, it is a user-supplied pointer that may have any alignment. Visiting it, may result in a crash. BUG= R=jochen Review URL: https://codereview.chromium.org/1406133003 Cr-Commit-Position: refs/heads/master@{#31611} PR-URL: #3549 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 2109708 commit cadee67

3 files changed

Lines changed: 92 additions & 34 deletions

File tree

deps/v8/src/heap/heap.cc

Lines changed: 63 additions & 34 deletions

deps/v8/src/heap/heap.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,9 @@ class Heap {
953953

954954
// Iterate pointers to from semispace of new space found in memory interval
955955
// from start to end.
956+
void IteratePointersToFromSpace(HeapObject* target, int size,
957+
ObjectSlotCallback callback);
958+
956959
void IterateAndMarkPointersToFromSpace(bool record_slots, Address start,
957960
Address end,
958961
ObjectSlotCallback callback);

deps/v8/test/cctest/test-api.cc

Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)