| Index: runtime/vm/assembler.cc
|
| ===================================================================
|
| --- runtime/vm/assembler.cc (revision 43595)
|
| +++ runtime/vm/assembler.cc (working copy)
|
| @@ -243,9 +243,9 @@
|
|
|
|
|
| intptr_t ObjectPool::AddObject(const Object& obj, Patchability patchable) {
|
| + // The object pool cannot be used in the vm isolate.
|
| ASSERT(Isolate::Current() != Dart::vm_isolate());
|
| if (object_pool_.IsNull()) {
|
| - // The object pool cannot be used in the vm isolate.
|
| object_pool_ = GrowableObjectArray::New(Heap::kOld);
|
| }
|
| object_pool_.Add(obj, Heap::kOld);
|
|
|