Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index c2e5382c3850a17dad64df959bc390338364709f..0b66955c96fdbf758fb8f5bef6624999717e92fc 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -9571,6 +9571,7 @@ static void CheckSurvivingGlobalObjectsCount(int expected) { |
// the first garbage collection but some of the maps have already |
// been marked at that point. Therefore some of the maps are not |
// collected until the second garbage collection. |
+ HEAP->global_context_map(); |
HEAP->CollectAllGarbage(false); |
HEAP->CollectAllGarbage(false); |
int count = GetGlobalObjectsCount(); |