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

Unified Diff: runtime/vm/service.cc

Issue 1394673002: Move reusable handles from isolate to thread. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix release build Created 5 years, 2 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/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 47751e215fb0d98a505f62c3b77079c8065470fc..b416a949b9183d2d99a14fc92e88a5757c31720e 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -1841,9 +1841,9 @@ class GetInstancesVisitor : public ObjectGraph::Visitor {
if (raw_obj->IsFreeListElement()) {
return kProceed;
}
- Isolate* isolate = Isolate::Current();
- REUSABLE_OBJECT_HANDLESCOPE(isolate);
- Object& obj = isolate->ObjectHandle();
+ Thread* thread = Thread::Current();
+ REUSABLE_OBJECT_HANDLESCOPE(thread);
+ Object& obj = thread->ObjectHandle();
obj = raw_obj;
if (obj.GetClassId() == cls_.id()) {
if (!storage_.IsNull() && count_ < storage_.Length()) {
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/stack_frame.cc » ('j') | runtime/vm/thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698