Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index d6285db026bba0d530576b0216ec44f506274f7c..4ae5b6eb2c9b9d1fa1062510c026d95d3230a766 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1067,6 +1067,7 @@ TEST(TestInternalWeakLists) { |
} |
// Mark compact handles the weak references. |
+ ISOLATE->compilation_cache()->Clear(); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
CHECK_EQ(opt ? 4 : 0, CountOptimizedUserFunctions(ctx[i])); |
@@ -1398,6 +1399,7 @@ TEST(LeakNativeContextViaMap) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
+ v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1435,6 +1437,7 @@ TEST(LeakNativeContextViaFunction) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
+ v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1470,6 +1473,7 @@ TEST(LeakNativeContextViaMapKeyed) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
+ v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1509,6 +1513,7 @@ TEST(LeakNativeContextViaMapProto) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
+ v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -2108,8 +2113,6 @@ TEST(IncrementalMarkingPreservesMonomorhpicIC) { |
Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC); |
CHECK(ic_before->ic_state() == MONOMORPHIC); |
- // Fire context dispose notification. |
- v8::V8::ContextDisposedNotification(); |
SimulateIncrementalMarking(); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |