Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Unified Diff: test/cctest/test-api.cc

Side-by-side diff isn't available for this file because of its large size.
Issue 2624973003: [heap] Add API function for checking if the heap limit was increased (Closed)
Patch Set: fix comment Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « src/heap/heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/heap/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698