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

Issue 1748933005: Fix handling of task model circularities. (Closed)

Created:
4 years, 9 months ago by Paul Berry
Modified:
4 years, 9 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

Fix handling of task model circularities. When a circularity is found during task model evaluation, we need to continue evaluating task inputs (skipping the inputs that contribute to the circularity) in order to find the largest possible strongly connected component that contributes to the circularity. Previously, the skipping logic was implemented by comparing WorkItem.target and WorkItem.spawningResult. However, since WorkItems are equality compared using WorkItem.target and WorkItem.descriptor, it was possible that a WorkItem might not have been skipped when it should be. This CL updates the skipping logic so that it uses WorkItem.target and WorkItem.descriptor to decide which WorkItems to skip. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/457df30acf0b000efa884756ba8c0151740ce420

Patch Set 1 #

Patch Set 2 : Clarify the purpose of an assertion. #

Patch Set 3 : Typo fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M pkg/analyzer/lib/src/task/driver.dart View 1 2 3 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
4 years, 9 months ago (2016-03-02 18:31:59 UTC) #2
Brian Wilkerson
LGTM, although a test would be good so that we don't regress.
4 years, 9 months ago (2016-03-02 18:36:11 UTC) #3
Paul Berry
On 2016/03/02 18:36:11, Brian Wilkerson wrote: > LGTM, although a test would be good so ...
4 years, 9 months ago (2016-03-02 19:21:16 UTC) #4
Paul Berry
4 years, 9 months ago (2016-03-02 20:27:37 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
457df30acf0b000efa884756ba8c0151740ce420 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698