Skip to content

Commit 3c37d20

Browse files
committed
Fix export cache invalidation
Stumbled on this bug in my recent export cache CL. The fix has no impact on the time savings. Review URL: https://codereview.chromium.org/1908123002 .
1 parent 819ed4b commit 3c37d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/vm/object.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9762,8 +9762,8 @@ void Library::InvalidateResolvedName(const String& name) const {
97629762
intptr_t num_libs = libs.Length();
97639763
for (intptr_t i = 0; i < num_libs; i++) {
97649764
lib ^= libs.At(i);
9765-
if (LookupExportedNamesCache(name, &entry)) {
9766-
InitExportedNamesCache();
9765+
if (lib.LookupExportedNamesCache(name, &entry)) {
9766+
lib.InitExportedNamesCache();
97679767
}
97689768
}
97699769
}

0 commit comments

Comments
 (0)