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

Unified Diff: runtime/vm/allocation_test.cc

Issue 1410643008: Get rid of deprecated methods accessing mutator_thread_ instead of current thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « runtime/vm/allocation.h ('k') | runtime/vm/base_isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation_test.cc
diff --git a/runtime/vm/allocation_test.cc b/runtime/vm/allocation_test.cc
index f8fe5a04fcbc7fae0badf7918f026fd193f8a687..63b91f6c5aa1b0a407b9aeeb4a374eb96bbb09bc 100644
--- a/runtime/vm/allocation_test.cc
+++ b/runtime/vm/allocation_test.cc
@@ -32,7 +32,7 @@ class TestValueObject : public ValueObject {
class TestStackResource : public StackResource {
public:
explicit TestStackResource(int* ptr)
- : StackResource(Isolate::Current()), ptr_(ptr) {
+ : StackResource(Thread::Current()), ptr_(ptr) {
EXPECT_EQ(1, *ptr_);
*ptr_ = 2;
}
@@ -53,7 +53,7 @@ class TestStackResource : public StackResource {
class TestStackedStackResource : public StackResource {
public:
explicit TestStackedStackResource(int* ptr)
- : StackResource(Isolate::Current()), ptr_(ptr) {
+ : StackResource(Thread::Current()), ptr_(ptr) {
EXPECT_EQ(3, *ptr_);
*ptr_ = 4;
}
« no previous file with comments | « runtime/vm/allocation.h ('k') | runtime/vm/base_isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698