-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix caches of info that depends on inherited classes #2425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
felixmulder
merged 22 commits into
scala:master
from
dotty-staging:fix-inherited-caches
May 29, 2017
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bf9123d
Use proper cache for memberNames
odersky 6d525f1
Improve caching of baseClasses and superClassBits
odersky bf84d5a
Make onBehalf implicit parameters
odersky e9b98cf
Get rid of some old code that's no longer used
odersky ff7bdd5
Void basedata computation inefficiency
odersky c1254ed
Instrumentation to get basedata computation counts
odersky e72c052
Have phases declare whether they can change members or parents
odersky d2b3fff
Refactorings to caches
odersky 7a2f158
Don't use null for inherited caches
odersky 12b91f9
Invalidate less on info_=
odersky 7afda82
Remove unnecessary cache invalidation
odersky ddbf8f7
Remove FingerPrints
odersky e86e314
Get rid of Frozen flag
odersky 6c13d54
Get rid of FullyCompleted flag
odersky 91c9013
Mive fullNameCache to caches section
odersky d648fd1
Document caches for inherited info
odersky 44b1a9b
Get rid of superIds
odersky 51aebce
Fix handling of baseTypeRef caches.
odersky 3f2ff0c
Polish docs
odersky ed2e676
Revert: Instrumentation to get basedata computation counts
odersky 04bc040
Fix reviewers comments
odersky effaca1
Address reviewers comments
odersky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either the doc & implementation are out of sync~,
or this is a bug.The implementation counts how many times where parents changed, it does not use the actual phase-ids.
I've had a look through usages, this value seems to only be used for equality comparisons, so the "number of times members could have changed" would behave correctly, but I'd still propose to make it return a PhaseID to ease understanding.
Same with
parentsGroup
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I'll change to phase ids, and use a more descriptive name.