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

Unified Diff: src/api.cc

Issue 6639024: Get rid of distinction between below- and above-watermark in page allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « include/v8.h ('k') | src/debug.cc » ('j') | src/spaces-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
===================================================================
--- src/api.cc (revision 7216)
+++ src/api.cc (working copy)
@@ -3388,7 +3388,7 @@
void v8::V8::LowMemoryNotification() {
if (!i::V8::IsRunning()) return;
- i::Heap::CollectAllGarbage(true);
+ i::Heap::CollectAllGarbage(i::Heap::kForceCompactionMask);
}
@@ -4220,12 +4220,12 @@
// snapshot.
// Make a GC prior to taking a snapshot.
- i::Heap::CollectAllGarbage(false);
+ i::Heap::CollectAllGarbage(i::Heap::kNoGCFlags);
// Reset snapshot flag and CPU module flags.
flags &= ~(PROFILER_MODULE_HEAP_SNAPSHOT | PROFILER_MODULE_CPU);
const int current_flags = i::Logger::GetActiveProfilerModules();
i::Logger::ResumeProfiler(flags, tag);
- i::Heap::CollectAllGarbage(false);
+ i::Heap::CollectAllGarbage(i::Heap::kNoGCFlags);
i::Logger::PauseProfiler(~current_flags & flags, tag);
} else {
i::Logger::ResumeProfiler(flags, tag);
« no previous file with comments | « include/v8.h ('k') | src/debug.cc » ('j') | src/spaces-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698