Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: src/heap/objects-visiting-inl.h

Issue 1485823002: Revert of [heap] Aggressive code flushing in GC stress mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-code-flushing-1
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/objects-visiting-inl.h
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
index 51f7c7ad8147b7dabeff9b8b5c3eac3ed7048dc8..3be5ce321b1398b4557d2f2c2ab8e5234a6e8610 100644
--- a/src/heap/objects-visiting-inl.h
+++ b/src/heap/objects-visiting-inl.h
@@ -627,6 +627,11 @@
return false;
}
+ // Check age of optimized code.
+ if (FLAG_age_code && !function->code()->IsOld()) {
+ return false;
+ }
+
return IsFlushable(heap, shared_info);
}
@@ -683,16 +688,6 @@
// relation between SharedFunctionInfo and Code is broken.
if (shared_info->dont_flush()) {
return false;
- }
-
- // ----------------------------------------------------------------
- // The above predicates up to this line are hard invariants, below
- // this line are heuristics that should not affect correctness.
- // ----------------------------------------------------------------
-
- // In stress mode we are aggressive.
- if (FLAG_stress_compaction) {
- return true;
}
// Check age of code. If code aging is disabled we never flush.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698