| Index: runtime/vm/allocation.cc
|
| diff --git a/runtime/vm/allocation.cc b/runtime/vm/allocation.cc
|
| index b5f0f6cdf061c0e3dcd0cfb9259cefc1560cfe27..6353cc8f5b8a2587120189c3a54a7e8a3ddc094d 100644
|
| --- a/runtime/vm/allocation.cc
|
| +++ b/runtime/vm/allocation.cc
|
| @@ -26,7 +26,7 @@ void* ZoneAllocated::operator new(uword size) {
|
|
|
|
|
| void* ZoneAllocated::operator new(uword size, Zone* zone) {
|
| - ASSERT(zone == Thread::Current()->zone());
|
| + ASSERT(Thread::Current()->ZoneIsOwnedByThread(zone));
|
| return Allocate(size, zone);
|
| }
|
|
|
|
|