| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 5093676b15ac886596a070f0552d72fc184c1ab4..43b9034ae18dafb8e2631e99a9cddcb93a4d52dc 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -2168,8 +2168,8 @@ void Class::SetFunctions(const Array& value) const {
|
| ASSERT(!value.IsNull());
|
| StorePointer(&raw_ptr()->functions_, value.raw());
|
| const intptr_t len = value.Length();
|
| - ClassFunctionsSet set(HashTables::New<ClassFunctionsSet>(len, Heap::kOld));
|
| if (len >= kFunctionLookupHashTreshold) {
|
| + ClassFunctionsSet set(HashTables::New<ClassFunctionsSet>(len, Heap::kOld));
|
| Function& func = Function::Handle();
|
| for (intptr_t i = 0; i < len; ++i) {
|
| func ^= value.At(i);
|
| @@ -2177,8 +2177,8 @@ void Class::SetFunctions(const Array& value) const {
|
| ASSERT(func.Owner() == raw());
|
| set.Insert(func);
|
| }
|
| + StorePointer(&raw_ptr()->functions_hash_table_, set.Release().raw());
|
| }
|
| - StorePointer(&raw_ptr()->functions_hash_table_, set.Release().raw());
|
| }
|
|
|
|
|
|
|