| Index: runtime/vm/pages.cc
|
| diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
|
| index 772806d260ffdcee2a21acd72d5bf70f8c67ee8c..b9d9fd88103374c98670f8fa85b2aaa679f43c2e 100644
|
| --- a/runtime/vm/pages.cc
|
| +++ b/runtime/vm/pages.cc
|
| @@ -360,7 +360,7 @@ void PageSpace::WriteProtect(bool read_only) {
|
| }
|
|
|
|
|
| -void PageSpace::MarkSweep(bool invoke_api_callbacks) {
|
| +void PageSpace::MarkSweep(bool invoke_api_callbacks, const char* gc_reason) {
|
| // MarkSweep is not reentrant. Make sure that is the case.
|
| ASSERT(!sweeping_);
|
| sweeping_ = true;
|
| @@ -377,6 +377,9 @@ void PageSpace::MarkSweep(bool invoke_api_callbacks) {
|
| OS::PrintErr(" done.\n");
|
| }
|
|
|
| + if (FLAG_verbose_gc) {
|
| + OS::PrintErr("Start mark sweep for %s collection\n", gc_reason);
|
| + }
|
| Timer timer(true, "MarkSweep");
|
| timer.Start();
|
| int64_t start = OS::GetCurrentTimeMillis();
|
|
|