Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index e8c3b0d00d01cf85cf62b3b2c35d10e71ee847a7..d7f660250c64def3e83c28272c75ae676b76965b 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -13514,6 +13514,7 @@ THREADED_TEST(LockUnlockLock) { |
static int GetGlobalObjectsCount() { |
+ CcTest::heap()->EnsureHeapIsIterable(); |
int count = 0; |
i::HeapIterator it(CcTest::heap()); |
for (i::HeapObject* object = it.next(); object != NULL; object = it.next()) |