| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index cb3c236ceaed86a1656ef32bd8b97bfafd230697..29a74d5ebccb5df32c58735d0d7745feaafc5e94 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -9591,7 +9591,10 @@ bool Library::LookupResolvedNamesCache(const String& name,
|
| ResolvedNamesMap cache(resolved_names());
|
| bool present = false;
|
| *obj = cache.GetOrNull(name, &present);
|
| - ASSERT(cache.Release().raw() == resolved_names());
|
| + // Mutator compiler thread may add entries and therefore
|
| + // change 'resolved_names()' while running a background compilation;
|
| + // do not ASSERT that 'resolved_names()' has not changed.
|
| + cache.Release();
|
| return present;
|
| }
|
|
|
|
|