| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index c6f4c723b4208b5f8eb8aa11df8ecc690e7e95e2..868696e9e64e82a198204619b4c794a32396e057 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -2281,12 +2281,12 @@ void Class::AddClosureFunction(const Function& function) const {
|
| GrowableObjectArray& closures =
|
| GrowableObjectArray::Handle(raw_ptr()->closure_functions_);
|
| if (closures.IsNull()) {
|
| - closures = GrowableObjectArray::New(4);
|
| + closures = GrowableObjectArray::New(4, Heap::kOld);
|
| StorePointer(&raw_ptr()->closure_functions_, closures.raw());
|
| }
|
| ASSERT(function.IsNonImplicitClosureFunction());
|
| ASSERT(function.Owner() == this->raw());
|
| - closures.Add(function);
|
| + closures.Add(function, Heap::kOld);
|
| }
|
|
|
|
|
|
|