Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1086)

Issue 2209493003: Don't report removed sources as changed in CacheConsistencyValidatorImpl. (Closed)

Created:
4 years, 4 months ago by scheglov
Modified:
4 years, 4 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't report removed sources as changed in CacheConsistencyValidatorImpl. Also I believe we don't need this check anymore. context.getLibrariesContaining(source).isEmpty && context.getLibrariesDependingOn(source).isEmpty) 1. It was not used in applyChanges(), which could probably cause losing some dependencies. 2. Since https://codereview.chromium.org/2172143003 we record that there are dependencies on the removed, so not existing, source. So, when the source is added again, _sourceAvailable() will invalidate its CONTENT and the whole transitive closure of its users. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/6cceb72ea753cdd190c9e87449a1a1ad8fe32262

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -54 lines) Patch
M pkg/analysis_server/lib/src/status/get_handler.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/context/cache.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 3 chunks +17 lines, -30 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 3 chunks +17 lines, -9 lines 0 comments Download
M pkg/analyzer/test/src/context/context_test.dart View 5 chunks +82 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
4 years, 4 months ago (2016-08-03 20:20:12 UTC) #1
Brian Wilkerson
lgtm
4 years, 4 months ago (2016-08-03 20:24:28 UTC) #2
scheglov
4 years, 4 months ago (2016-08-03 20:30:15 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
6cceb72ea753cdd190c9e87449a1a1ad8fe32262 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698