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

Unified Diff: runtime/vm/object_graph_test.cc

Issue 2995543004: [vm, gc] Require a safepoint for heap iteration. (Closed)
Patch Set: . Created 3 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/object_graph_test.cc
diff --git a/runtime/vm/object_graph_test.cc b/runtime/vm/object_graph_test.cc
index fb2329089956e7f544d044ac06dae58305bb94a2..becea26a88442af0fb00472b1b208b5b6374faf4 100644
--- a/runtime/vm/object_graph_test.cc
+++ b/runtime/vm/object_graph_test.cc
@@ -57,8 +57,6 @@ ISOLATE_UNIT_TEST_CASE(ObjectGraph) {
intptr_t c_size = c.raw()->Size();
intptr_t d_size = d.raw()->Size();
{
- // No more allocation; raw pointers ahead.
- NoSafepointScope no_safepoint_scope;
RawObject* b_raw = b.raw();
danunez 2017/08/05 17:24:11 I think we can remove the NoSafepoint here because
rmacnak 2017/08/07 22:37:51 Nevermind, this is unsafe in the unlikely case tha
// Clear handles to cut unintended retained paths.
b = Array::null();

Powered by Google App Engine
This is Rietveld 408576698