| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 731c76771682b58b5a3801af298cd88e3dd9f434..d0d19486f6c32707beaf1a246fbfb70a772605de 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -2829,6 +2829,7 @@ void Class::set_invocation_dispatcher_cache(const Array& cache) const {
|
|
|
|
|
| void Class::Finalize() const {
|
| + ASSERT(Thread::Current()->IsMutatorThread());
|
| // Even if all regular classes are prefinalized (precompilation), signature
|
| // classes may be added later when we encounter local functions.
|
| ASSERT(IsSignatureClass() || !Isolate::Current()->all_classes_finalized());
|
|
|