X Tutup
Skip to content

fix(compiler): prevent race conditions#3211

Closed
tbosch wants to merge 1 commit intoangular:masterfrom
tbosch:p0-compiler
Closed

fix(compiler): prevent race conditions#3211
tbosch wants to merge 1 commit intoangular:masterfrom
tbosch:p0-compiler

Conversation

@tbosch
Copy link
Copy Markdown
Contributor

@tbosch tbosch commented Jul 23, 2015

Previously, the compiler would detect cycles where there were none just because of other components that were compiled in parallel. Furthermore, the way ProtoView merging was triggered could result into early exits resulting in errors when trying to instantiate ProtoViews.

Closes #3206

@tbosch tbosch changed the title WIP fix(compiler): prevent race conditions fix(compiler): prevent race conditions Jul 23, 2015
@tbosch tbosch added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 23, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

componentStack is misleading name, componentPath is more descriptive to what it is collecting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rkirov rkirov added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 23, 2015
@rkirov
Copy link
Copy Markdown
Contributor

rkirov commented Jul 23, 2015

In general, compiler code is still quite hard for me to follow. We can improve the documentation and naming of methods and variables once it stabalizes.

Previously, the compiler would detect cycles where there were none just because of other components that were compiled in parallel. Furthermore, the way ProtoView merging was triggered could result into early exits resulting in errors when trying to instantiate ProtoViews.

Closes angular#3206
@tbosch tbosch closed this in 5ec67ee Jul 23, 2015
@tbosch tbosch deleted the p0-compiler branch July 23, 2015 21:29
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: "Unconditional component cycle" using DynamicComponentLoader?

3 participants

X Tutup