Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index fedcce79cabd59a705285a5d40b24753a8146fd2..927f74c135ba0afe1504c20877dd66ae2d3fdaf9 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -26622,10 +26622,13 @@ UNINITIALIZED_TEST(IncreaseHeapLimitForDebugging) { |
{ |
size_t limit_before = i_isolate->heap()->MaxOldGenerationSize(); |
CHECK_EQ(16 * MB, limit_before); |
+ CHECK(!isolate->IsHeapLimitIncreasedForDebugging()); |
isolate->IncreaseHeapLimitForDebugging(); |
+ CHECK(isolate->IsHeapLimitIncreasedForDebugging()); |
size_t limit_after = i_isolate->heap()->MaxOldGenerationSize(); |
CHECK_EQ(4 * 16 * MB, limit_after); |
isolate->RestoreOriginalHeapLimit(); |
+ CHECK(!isolate->IsHeapLimitIncreasedForDebugging()); |
CHECK_EQ(limit_before, i_isolate->heap()->MaxOldGenerationSize()); |
} |
isolate->Dispose(); |