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

Unified Diff: src/heap.cc

Issue 8770003: Use the old idle notification handler when context is disposed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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.cc
diff --git a/src/heap.cc b/src/heap.cc
index f948c6c88f6e5fd85eac6b4c581e184988d3e50d..3f36d8b390d5e1ee01340e92d3eb40c511b1376b 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -4541,7 +4541,8 @@ void Heap::EnsureHeapIsIterable() {
bool Heap::IdleNotification(int hint) {
- if (!FLAG_incremental_marking || FLAG_expose_gc || Serializer::enabled()) {
+ if (contexts_disposed_ > 0 || !FLAG_incremental_marking ||
+ FLAG_expose_gc || Serializer::enabled()) {
return hint < 1000 ? true : IdleGlobalGC();
}
« 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