Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 6275fbf7eb27c9512a245bf9be57468997578381..49cd36c77659d12c7b233272dee9a17b83cda12c 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14899,7 +14899,8 @@ THREADED_TEST(ExternalAllocatedMemory) { |
isolate->AdjustAmountOfExternalAllocatedMemory(kSize)); |
CHECK_EQ(baseline, |
isolate->AdjustAmountOfExternalAllocatedMemory(-kSize)); |
- const int64_t kTriggerGCSize = i::kExternalAllocationLimit + 1; |
+ const int64_t kTriggerGCSize = |
+ CcTest::i_isolate()->heap()->external_memory_hard_limit() + 1; |
CHECK_EQ(baseline + kTriggerGCSize, |
isolate->AdjustAmountOfExternalAllocatedMemory(kTriggerGCSize)); |
CHECK_EQ(baseline, |
@@ -14911,7 +14912,8 @@ TEST(Regress51719) { |
i::FLAG_incremental_marking = false; |
CcTest::InitializeVM(); |
- const int64_t kTriggerGCSize = i::kExternalAllocationLimit + 1; |
+ const int64_t kTriggerGCSize = |
+ CcTest::i_isolate()->heap()->external_memory_hard_limit() + 1; |
v8::Isolate* isolate = CcTest::isolate(); |
isolate->AdjustAmountOfExternalAllocatedMemory(kTriggerGCSize); |
} |