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

Unified Diff: src/v8.cc

Issue 165448: - Added simple memory reduction behavior for IdleNotification.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 months 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
« src/spaces.h ('K') | « src/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8.cc
===================================================================
--- src/v8.cc (revision 2676)
+++ src/v8.cc (working copy)
@@ -157,7 +157,12 @@
}
Kasper Lund 2009/08/20 07:20:25 Two newlines between function definitions?
void V8::IdleNotification(bool is_high_priority) {
- // todo(bak): Reduce memory footprint.
+ if (!FLAG_use_idle_notification) return;
+ // Ignore high priority instances of V8.
+ if (is_high_priority) return;
+
+ // Uncommit unused memory in new space.
+ Heap::UncommitFromSpace();
}
« src/spaces.h ('K') | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698