Index: runtime/vm/scavenger.cc |
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc |
index ecf1ed08166fabea3104a34961e8425edb260239..62a3c46cfb3cc466435d3b2a1fbe80536e7a4583 100644 |
--- a/runtime/vm/scavenger.cc |
+++ b/runtime/vm/scavenger.cc |
@@ -804,7 +804,7 @@ void Scavenger::Scavenge(bool invoke_api_callbacks) { |
scavenging_ = true; |
Isolate* isolate = heap_->isolate(); |
PageSpace* page_space = heap_->old_space(); |
- NoHandleScope no_handles(isolate); |
+ NoSafepointScope no_safepoints; |
// TODO(koda): Make verification more compatible with concurrent sweep. |
if (FLAG_verify_before_gc && !FLAG_concurrent_sweep) { |