Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index f5806c411817238fd35a9c1b51a590c51cc93386..c3856f2c43f968edcedc82583023eff3ce59f36e 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -485,6 +485,8 @@ |
" (function a(j) { return function b() { return j; } })(100);\n" |
"})(this);"); |
logger->StopProfiler(); |
+ reinterpret_cast<i::Isolate*>(isolate)->heap()->CollectAllGarbage( |
+ i::Heap::kMakeHeapIterableMask); |
logger->StringEvent("test-logging-done", ""); |
// Iterate heap to find compiled functions, will write to log. |