Skip to content

Avoid inefficient specialized lambdas w. delambdafy jvm-1.8, GenASM #4508

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 1 commit into from
May 20, 2015

Conversation

retronym
Copy link
Member

A previous change disabled -Ydelambdafy:method for specialized
lambdas, as DelambdafyTransformer made no attempt to emit
the requisite machinery to avoid boxing.

This was loosened to allow them under -target:jvm-1.8, in the
knowledge that indylambda would do the right thing.

However, this wasn't quite right: indylambda is only supported
in GenBCode, so we should consider that setting as well.

A previous change disabled -Ydelambdafy:method for specialized
lambdas, as `DelambdafyTransformer` made no attempt to emit
the requisite machinery to avoid boxing.

This was loosened to allow them under `-target:jvm-1.8`, in the
knowledge that `indylambda` would do the right thing.

However, this wasn't quite right: indylambda is only supported
in `GenBCode`, so we should consider that setting as well.
@scala-jenkins scala-jenkins added this to the 2.11.7 milestone May 20, 2015
@retronym
Copy link
Member Author

Review by @lrytz

@lrytz
Copy link
Member

lrytz commented May 20, 2015

LGTM

@lrytz
Copy link
Member

lrytz commented May 20, 2015

/synch

lrytz added a commit that referenced this pull request May 20, 2015
Avoid inefficient specialied lambdas w. delambdafy jvm-1.8, GenASM
@lrytz lrytz merged commit 0c360f6 into scala:2.11.x May 20, 2015
@SethTisue SethTisue changed the title Avoid inefficient specialied lambdas w. delambdafy jvm-1.8, GenASM Avoid inefficient specialized lambdas w. delambdafy jvm-1.8, GenASM Jun 23, 2015
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.

3 participants