Chromium Code Reviews| 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. |
|
siva
2015/12/22 19:43:46
The background compiler will only add entries and
srdjan
2015/12/22 20:23:10
I agreed with you originally, but realized that th
|
| + cache.Release(); |
| return present; |
| } |