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

Unified Diff: runtime/vm/scavenger.h

Issue 10872074: Report the reason for a garbage collection when verbose GC is enabled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: runtime/vm/scavenger.h
diff --git a/runtime/vm/scavenger.h b/runtime/vm/scavenger.h
index 8db0aefa35f987eb2239b93dc6c5123d3e21a0e3..f5e3b5af4d95a65e597dc5cc639b4a456fa6b40f 100644
--- a/runtime/vm/scavenger.h
+++ b/runtime/vm/scavenger.h
@@ -43,7 +43,7 @@ class Scavenger {
ASSERT(Utils::IsAligned(size, kObjectAlignment));
#if defined(DEBUG)
if (FLAG_gc_at_alloc && !scavenging_) {
- Scavenge();
+ scavenge("debugging");
Ivan Posva 2012/08/27 22:04:23 Lower-case?
}
#endif
uword result = top_;
@@ -60,8 +60,8 @@ class Scavenger {
}
// Collect the garbage in this scavenger.
- void Scavenge();
- void Scavenge(bool invoke_api_callbacks);
+ void Scavenge(const char* reason);
+ void Scavenge(bool invoke_api_callbacks, const char* reason);
// Accessors to generate code for inlined allocation.
uword* TopAddress() { return &top_; }
« runtime/vm/heap.cc ('K') | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698