Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index b5a24c670d95c3342e1cfea80f14ec7c5d220186..2743de98b4514a69f2604bcc946a25356ecba86f 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -6209,7 +6209,8 @@ TEST(OldSpaceAllocationCounter) { |
CHECK_LE(kSize, counter4 - counter3); |
// Test counter overflow. |
size_t max_counter = -1; |
- heap->set_old_generation_allocation_counter(max_counter - 10 * kSize); |
+ heap->set_old_generation_allocation_counter_at_last_gc(max_counter - |
+ 10 * kSize); |
size_t start = heap->OldGenerationAllocationCounter(); |
for (int i = 0; i < 20; i++) { |
AllocateInSpace(isolate, kSize, OLD_SPACE); |