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

Unified Diff: vm/heap.cc

Issue 10797021: - Start using the collected store buffer entries to find (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | « vm/hash_set.h ('k') | vm/isolate.h » ('j') | vm/scavenger.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap.cc
===================================================================
--- vm/heap.cc (revision 9751)
+++ vm/heap.cc (working copy)
@@ -59,9 +59,6 @@
return addr;
}
CollectGarbage(kNew);
- if (FLAG_verbose_gc) {
- PrintSizes();
- }
addr = new_space_->TryAllocate(size);
if (addr != 0) {
return addr;
@@ -75,9 +72,6 @@
uword addr = old_space_->TryAllocate(size);
if (addr == 0) {
CollectAllGarbage();
- if (FLAG_verbose_gc) {
- PrintSizes();
- }
addr = old_space_->TryAllocate(size, PageSpace::kForceGrowth);
if (addr == 0) {
OS::PrintErr("Exhausted heap space, trying to allocate %d bytes.\n",
@@ -189,6 +183,9 @@
default:
UNREACHABLE();
}
+ if (FLAG_verbose_gc) {
+ PrintSizes();
+ }
}
@@ -208,6 +205,9 @@
old_space_->MarkSweep(kInvokeApiCallbacks);
// TODO(iposva): Merge old and code space.
// code_space_->MarkSweep(kInvokeApiCallbacks);
+ if (FLAG_verbose_gc) {
+ PrintSizes();
+ }
}
« no previous file with comments | « vm/hash_set.h ('k') | vm/isolate.h » ('j') | vm/scavenger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698