Chromium Code Reviews| 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(); |
| } |