| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index 86f6d01940a0c7b9126e439a8b1392ca71ae51da..f127993c6c6a235ef820922e7e92a79ea0927f60 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -443,8 +443,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo(
|
| if (FLAG_cleanup_code_caches_at_gc) {
|
| shared->ClearTypeFeedbackInfoAtGCTime();
|
| }
|
| - if ((FLAG_flush_optimized_code_cache ||
|
| - heap->isolate()->serializer_enabled()) &&
|
| + if (FLAG_flush_optimized_code_cache &&
|
| !shared->optimized_code_map()->IsSmi()) {
|
| // Always flush the optimized code map if requested by flag.
|
| shared->ClearOptimizedCodeMap();
|
|
|