Skip to content

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

Merged
lrytz merged 1 commit intoscala:2.11.xfrom
retronym:topic/uncurry-specialized
May 20, 2015
Merged

Avoid inefficient specialized lambdas w. delambdafy jvm-1.8, GenASM#4508
lrytz merged 1 commit intoscala:2.11.xfrom
retronym:topic/uncurry-specialized

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