| Index: runtime/vm/profiler_test.cc
|
| diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc
|
| index 76f4678bf33cf5d77dc94cfe429515b2260cd221..1ecac9f80aa198055a45aa1191a2cfae17c21fbb 100644
|
| --- a/runtime/vm/profiler_test.cc
|
| +++ b/runtime/vm/profiler_test.cc
|
| @@ -180,15 +180,16 @@ TEST_CASE(Profiler_AllocationSampleTest) {
|
|
|
| static RawClass* GetClass(const Library& lib, const char* name) {
|
| const Class& cls = Class::Handle(
|
| - lib.LookupClassAllowPrivate(String::Handle(Symbols::New(name))));
|
| + lib.LookupClassAllowPrivate(String::Handle(Symbols::New(Thread::Current(),
|
| + name))));
|
| EXPECT(!cls.IsNull()); // No ambiguity error expected.
|
| return cls.raw();
|
| }
|
|
|
|
|
| static RawFunction* GetFunction(const Library& lib, const char* name) {
|
| - const Function& func = Function::Handle(
|
| - lib.LookupFunctionAllowPrivate(String::Handle(Symbols::New(name))));
|
| + const Function& func = Function::Handle(lib.LookupFunctionAllowPrivate(
|
| + String::Handle(Symbols::New(Thread::Current(), name))));
|
| EXPECT(!func.IsNull()); // No ambiguity error expected.
|
| return func.raw();
|
| }
|
|
|