Index: runtime/vm/object_graph_test.cc |
diff --git a/runtime/vm/object_graph_test.cc b/runtime/vm/object_graph_test.cc |
index fb2329089956e7f544d044ac06dae58305bb94a2..52e832ccb0c6e62f6ec7b604a87986e1ac29776f 100644 |
--- a/runtime/vm/object_graph_test.cc |
+++ b/runtime/vm/object_graph_test.cc |
@@ -58,7 +58,7 @@ ISOLATE_UNIT_TEST_CASE(ObjectGraph) { |
intptr_t d_size = d.raw()->Size(); |
{ |
// No more allocation; raw pointers ahead. |
- NoSafepointScope no_safepoint_scope; |
+ SafepointOperationScope safepoint(thread); |
RawObject* b_raw = b.raw(); |
// Clear handles to cut unintended retained paths. |
b = Array::null(); |