Index: runtime/vm/handles_test.cc |
diff --git a/runtime/vm/handles_test.cc b/runtime/vm/handles_test.cc |
index cc82f2686850f62346e4b2a7bb162c13839159db..b871f973adfebf2d3d7a10eaff10e4c1be1368ee 100644 |
--- a/runtime/vm/handles_test.cc |
+++ b/runtime/vm/handles_test.cc |
@@ -49,8 +49,8 @@ TEST_CASE(AllocateScopeHandle) { |
static const int kNumHandles = 65; |
// Create some scoped handles. |
{ |
- Isolate* isolate = Isolate::Current(); |
- HANDLESCOPE(isolate); |
+ Thread* thread = Thread::Current(); |
+ HANDLESCOPE(thread); |
for (int i = 0; i < kNumHandles; i++) { |
const Smi& handle = Smi::Handle(Smi::New(i)); |
EXPECT(handle.IsSmi()); |
@@ -59,7 +59,7 @@ TEST_CASE(AllocateScopeHandle) { |
EXPECT_EQ((handle_count + kNumHandles), VMHandles::ScopedHandleCount()); |
// Create lots of scoped handles in a loop with a nested scope. |
for (int loop = 0; loop < 1000; loop++) { |
- HANDLESCOPE(isolate); |
+ HANDLESCOPE(thread); |
for (int i = 0; i < 2; i++) { |
const Smi& handle = Smi::Handle(Smi::New(i + loop)); |
EXPECT(handle.IsSmi()); |