| Index: test/cctest/heap/test-heap.cc
|
| diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
|
| index e1d761ff39df61fb3b341322046a120ecbfe3ccf..d6d1f1d4a37770a6e0a55e6b58ee24dab94c6f51 100644
|
| --- a/test/cctest/heap/test-heap.cc
|
| +++ b/test/cctest/heap/test-heap.cc
|
| @@ -1619,7 +1619,6 @@ TEST(TestUseOfIncrementalBarrierOnCompileLazy) {
|
| TEST(CompilationCacheCachingBehavior) {
|
| // If we do not flush code, or have the compilation cache turned off, this
|
| // test is invalid.
|
| - i::FLAG_allow_natives_syntax = true;
|
| if (!FLAG_flush_code || !FLAG_compilation_cache) {
|
| return;
|
| }
|
| @@ -1663,8 +1662,12 @@ TEST(CompilationCacheCachingBehavior) {
|
| }
|
|
|
| // Progress code age until it's old and ready for GC.
|
| - while (!info.ToHandleChecked()->code()->IsOld()) {
|
| + const int kAgingThreshold = 6;
|
| + for (int i = 0; i < kAgingThreshold; i++) {
|
| info.ToHandleChecked()->code()->MakeOlder();
|
| + if (info.ToHandleChecked()->HasBytecodeArray()) {
|
| + info.ToHandleChecked()->bytecode_array()->MakeOlder();
|
| + }
|
| }
|
|
|
| CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask);
|
|
|