| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 22335071389bec3993d9a6ac57fd47282612d2fa..83036472a337b8b2454ba3925e4cfc58f1edf0ec 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -4036,7 +4036,10 @@ TEST(NextCodeLinkIsWeak) {
|
| Isolate* isolate = CcTest::i_isolate();
|
| v8::internal::Heap* heap = CcTest::heap();
|
|
|
| + // TODO(titzer): Test should be resilient against optimization decisions.
|
| + if (i::FLAG_always_opt) return;
|
| if (!isolate->use_crankshaft()) return;
|
| +
|
| HandleScope outer_scope(heap->isolate());
|
| Handle<Code> code;
|
| heap->CollectAllAvailableGarbage();
|
|
|