Index: runtime/vm/metrics_test.cc |
diff --git a/runtime/vm/metrics_test.cc b/runtime/vm/metrics_test.cc |
index 364c946422c169aa43506174f61889cb36a4821e..faf425bffd3d3ae85563d7a704b1dec85550823e 100644 |
--- a/runtime/vm/metrics_test.cc |
+++ b/runtime/vm/metrics_test.cc |
@@ -48,6 +48,8 @@ UNIT_TEST_CASE(Metric_OnDemand) { |
vm_flags.CopyTo(&api_flags); |
Isolate* isolate = Isolate::Init(NULL, api_flags); |
EXPECT_EQ(isolate, Isolate::Current()); |
+ StackZone zone(isolate); |
+ HANDLESCOPE(isolate); |
MyMetric metric; |
metric.Init(Isolate::Current(), "a.b.c", "foobar", Metric::kByte); |