Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] Dont wire "annotations.cached_reader" before removing passes#21381

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.2fromnicolas-grekas:no-annot
Jan 24, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJan 23, 2017
edited
Loading

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21339
LicenseMIT
Doc PR-

This PR basically reverts#20601 and wires "annotations.cached_reader" later, so that any compiler passes needing "annotation_reader" at compile time don't get any cache - anyway, it's useless at compile time.

@fabpot
Copy link
Member

Is it possible to some tests? Because I fear we can get regressions on this one.

@nicolas-grekas
Copy link
MemberAuthor

Test added. Without the patch, the test suite fails with manyConstructing service "cache.annotations" from a parent definition is not supported at build time.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commite59f0e0 intosymfony:3.2Jan 24, 2017
fabpot added a commit that referenced this pull requestJan 24, 2017
…fore removing passes (nicolas-grekas)This PR was merged into the 3.2 branch.Discussion----------[FrameworkBundle] Dont wire "annotations.cached_reader" before removing passes| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21339| License       | MIT| Doc PR        | -This PR basically reverts#20601 and wires "annotations.cached_reader" later, so that any compiler passes needing "annotation_reader" at compile time don't get any cache - anyway, it's useless at compile time.Commits-------e59f0e0 [FrameworkBundle] Dont wire "annotations.cached_reader" before removing passes
@nicolas-grekasnicolas-grekas deleted the no-annot branchJanuary 24, 2017 16:33
@stof
Copy link
Member

this is wrong, as it changes the object graph after optimizations, which may change the allowed inlining.

Instead it should stay a pass registered before optimizations, but with a very low priority

@stof
Copy link
Member

in practice, adding more compiler passes after optimization should be quite rare, as changes done in them may break previous optimizations

@nicolas-grekas
Copy link
MemberAuthor

Not sure to get what you mean. To me, the graph is computed in removing passes, by AnalyzeServiceReferencesPass, so this won't be an issue.
But if you spotted a broken case, could you please tell me how to reproduce/test it?

@fabpotfabpot mentioned this pull requestFeb 6, 2017
fabpot added a commit that referenced this pull requestFeb 12, 2017
… bootstrap (nicolas-grekas)This PR was merged into the 3.2 branch.Discussion----------[FrameworkBundle] Wire ArrayCache for annotation reader at bootstrap| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21549| License       | MIT| Doc PR        | -Related to#21381 which disabled any cache at bootstrap.Instead, this wires ArrayCache during bootstrapping, then swaps the cache provider for the real one.Commits-------f90f53e [FrameworkBundle] Wire ArrayCache for annotation reader at bootstrap
fabpot added a commit that referenced this pull requestJun 8, 2018
…ss (nicolas-grekas)This PR was merged into the 3.4 branch.Discussion----------[FrameworkBundle] remove dead code in CachePoolClearerPass| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -This code had been removed in#21381, I don't know why it's still there but this is dead code, as the `cache.annotations` service inherits a logger from the parent `cache.system` service.Commits-------974991f [FrameworkBundle] remove dead code in CachePoolClearerPass
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp