Skip to content

Generate less code for lazy vals #706

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
merged 2 commits into from
Jul 20, 2015
Merged

Conversation

DarkDimius
Copy link
Contributor

Makes modules which are entirely synthetic be eager.
This fix additionally makes inner objects of other objects remain static classes, instead of becoming lazy vals.

@adriaanm
Copy link
Contributor

adriaanm commented Jul 1, 2015

/rebuild

Modules which are entirely synthetic now are eager
This fix additionally makes inner objects of other objects remain static classes, instead of becoming lazy vals.
@DarkDimius
Copy link
Contributor Author

@odersky please review.


if (isField) {
if (sym.isVolatile ||
(sym.is(Flags.Module) && !sym.is(Flags.Synthetic))) // companion class is synthesized. Should be threadsafe to
Copy link
Contributor

Choose a reason for hiding this comment

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

Did not understand comment. What does "companion class is synthesized" mean?

@DarkDimius
Copy link
Contributor Author

/rebuild

@DarkDimius
Copy link
Contributor Author

@odersky review comments should be addressed now.

@odersky
Copy link
Contributor

odersky commented Jul 20, 2015

LGTM

DarkDimius added a commit that referenced this pull request Jul 20, 2015
Generate less code for lazy vals
@DarkDimius DarkDimius merged commit ed8b3f0 into scala:master Jul 20, 2015
@allanrenucci allanrenucci deleted the fix-676 branch December 14, 2017 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants