Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index 725a8ddfddb79d6767a7b91a95074e48d7ef3bd7..524a553a151a5326bdc7b0aaa0305a6feaf4107b 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -6717,7 +6717,7 @@ TEST(Regress618958) { |
v8::HandleScope scope(CcTest::isolate()); |
Heap* heap = CcTest::heap(); |
bool isolate_is_locked = true; |
- heap->update_amount_of_external_allocated_memory(100 * MB); |
+ heap->update_external_memory(100 * MB); |
int mark_sweep_count_before = heap->ms_count(); |
heap->MemoryPressureNotification(MemoryPressureLevel::kCritical, |
isolate_is_locked); |