diff options
Diffstat (limited to 'deps/v8/test/cctest/heap/test-array-buffer-tracker.cc')
-rw-r--r-- | deps/v8/test/cctest/heap/test-array-buffer-tracker.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/cctest/heap/test-array-buffer-tracker.cc b/deps/v8/test/cctest/heap/test-array-buffer-tracker.cc index b331f6bf3a..173d1fa85f 100644 --- a/deps/v8/test/cctest/heap/test-array-buffer-tracker.cc +++ b/deps/v8/test/cctest/heap/test-array-buffer-tracker.cc @@ -2,7 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "src/api.h" #include "src/heap/array-buffer-tracker.h" +#include "src/isolate.h" #include "test/cctest/cctest.h" #include "test/cctest/heap/heap-utils.h" @@ -128,7 +130,7 @@ TEST(ArrayBuffer_Compaction) { page_before_gc->SetFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); CHECK(IsTracked(*buf1)); - heap->CollectAllGarbage(); + CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); Page* page_after_gc = Page::FromAddress(buf1->address()); CHECK(IsTracked(*buf1)); @@ -175,7 +177,7 @@ TEST(ArrayBuffer_UnregisterDuringSweep) { CHECK(IsTracked(*buf2)); } - heap->CollectGarbage(OLD_SPACE); + CcTest::CollectGarbage(OLD_SPACE); // |Externalize| will cause the buffer to be |Unregister|ed. Without // barriers and proper synchronization this will trigger a data race on // TSAN. |