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

Unified Diff: src/debug.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 | « src/api.cc ('k') | src/extensions/gc-extension.cc » ('j') | src/heap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug.cc
===================================================================
--- src/debug.cc (revision 7102)
+++ src/debug.cc (working copy)
@@ -1875,8 +1875,8 @@
// Perform two GCs to get rid of all unreferenced scripts. The first GC gets
// rid of all the cached script wrappers and the second gets rid of the
// scripts which are no longer referenced.
Vyacheslav Egorov (Chromium) 2011/03/15 09:20:09 Comment is outdated add more about precise sweepin
Erik Corry 2011/03/17 13:39:17 Done.
- Heap::CollectAllGarbage(false);
- Heap::CollectAllGarbage(false);
+ Heap::CollectAllGarbage(Heap::kNoGCFlags);
+ Heap::CollectAllGarbage(Heap::kSweepPreciselyMask);
ASSERT(script_cache_ == NULL);
script_cache_ = new ScriptCache();
@@ -1884,7 +1884,7 @@
// Scan heap for Script objects.
int count = 0;
HeapIterator iterator;
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) {
if (obj->IsScript() && Script::cast(obj)->HasValidSource()) {
script_cache_->Add(Handle<Script>(Script::cast(obj)));
count++;
@@ -1924,7 +1924,7 @@
// Perform GC to get unreferenced scripts evicted from the cache before
// returning the content.
- Heap::CollectAllGarbage(false);
+ Heap::CollectAllGarbage(Heap::kNoGCFlags);
// Get the scripts from the cache.
return script_cache_->GetScripts();
« no previous file with comments | « src/api.cc ('k') | src/extensions/gc-extension.cc » ('j') | src/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698